mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
18 lines
655 B
C
18 lines
655 B
C
#pragma once
|
|
|
|
#include <stdio.h>
|
|
#include <gst/gst.h>
|
|
#include <gst/app/gstappsrc.h>
|
|
|
|
extern void goHandlePipelineBuffer(void *buffer, int bufferLen, int samples, int pipelineId);
|
|
extern void goPipelineLog(char *level, char *msg);
|
|
|
|
void gstreamer_pipeline_attach_appsink(GstElement *pipeline, char *sinkName, int pipelineId);
|
|
GstElement *gstreamer_pipeline_create(char *pipelineStr, GError **error);
|
|
void gstreamer_pipeline_play(GstElement *pipeline);
|
|
void gstreamer_pipeline_stop(GstElement *pipeline);
|
|
void gstreamer_pipeline_push(GstElement *pipeline, char *srcName, void *buffer, int bufferLen);
|
|
|
|
void gstreamer_init(void);
|
|
void gstreamer_loop(void);
|