blob: 90b3b7ea2af54ab935f8d92dc05e383438c5b670 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#ifndef __GST_POLYPSINK_H__
#define __GST_POLYPSINK_H__
#include <gst/gst.h>
#include <polyp/polyplib-context.h>
#include <polyp/polyplib-stream.h>
G_BEGIN_DECLS
#define GST_TYPE_POLYPSINK \
(gst_polypsink_get_type())
#define GST_POLYPSINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_POLYPSINK,GstPolypSink))
#define GST_POLYPSINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_POLYPSINK,GstPolypSinkClass))
#define GST_IS_POLYPSINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_POLYPSINK))
#define GST_IS_POLYPSINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_POLYPSINK))
typedef struct _GstPolypSink GstPolypSink;
typedef struct _GstPolypSinkClass GstPolypSinkClass;
struct _GstPolypSink {
GstElement element;
GstPad *sinkpad;
char *server, *sink;
struct pa_mainloop *mainloop;
struct pa_mainloop_api *mainloop_api;
struct pa_context *context;
struct pa_stream *stream;
struct pa_sample_spec sample_spec;
int negotiated;
GstBuffer *buffer;
size_t buffer_index;
size_t counter;
pa_usec_t latency;
};
struct _GstPolypSinkClass {
GstElementClass parent_class;
};
GType gst_polypsink_get_type(void);
gboolean gst_polypsink_factory_init(GstPlugin *plugin);
G_END_DECLS
#endif /* __GST_POLYPSINK_H__ */
|