|
1 /* GStreamer |
|
2 * Copyright (C) 1999,2000 |
|
3 * 2000 |
|
4 * |
|
5 * gstdevsoundsrc.h: |
|
6 * |
|
7 * This library is free software; you can redistribute it and/or |
|
8 * modify it under the terms of the GNU Library General Public |
|
9 * License as published by the Free Software Foundation; either |
|
10 * version 2 of the License, or (at your option) any later version. |
|
11 * |
|
12 * This library is distributed in the hope that it will be useful, |
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 * Library General Public License for more details. |
|
16 * |
|
17 * You should have received a copy of the GNU Library General Public |
|
18 * License along with this library; if not, write to the |
|
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
20 * Boston, MA 02111-1307, USA. |
|
21 */ |
|
22 |
|
23 /*Gstreamer Src Plugin for Symbian Devsound. This is the plugin used to |
|
24 record sound from the Symbian Devsound. |
|
25 |
|
26 */ |
|
27 |
|
28 #ifndef __GST_DEVSOUNDSRC_H__ |
|
29 #define __GST_DEVSOUNDSRC_H__ |
|
30 |
|
31 #include <gst/gst.h> |
|
32 #include <gst/base/gstpushsrc.h> |
|
33 |
|
34 G_BEGIN_DECLS |
|
35 |
|
36 #define GST_TYPE_DEVSOUND_SRC (gst_devsound_src_get_type()) |
|
37 #define GST_DEVSOUND_SRC(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DEVSOUND_SRC,GstDevsoundSrc)) |
|
38 #define GST_DEVSOUND_SRC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DEVSOUND_SRC,GstDevsoundSrcClass)) |
|
39 #define GST_IS_DEVSOUND_SRC(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DEVSOUND_SRC)) |
|
40 #define GST_IS_DEVSOUND_SRC_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVSOUND_SRC)) |
|
41 |
|
42 typedef struct _GstDevsoundSrc GstDevsoundSrc; |
|
43 typedef struct _GstDevsoundSrcClass GstDevsoundSrcClass; |
|
44 |
|
45 typedef struct _GstDevsoundUpdate GstDevsoundUpdate; |
|
46 |
|
47 struct _GstDevsoundUpdate{ |
|
48 gboolean channelsupdate; |
|
49 gboolean rateupdate; |
|
50 gboolean gainupdate; |
|
51 gboolean leftbalanceupdate; |
|
52 gboolean rightbalanceupdate; |
|
53 gboolean preferenceupdate; |
|
54 gboolean priorityupdate; |
|
55 }; |
|
56 |
|
57 struct _GstDevsoundSrc { |
|
58 GstPushSrc src; |
|
59 |
|
60 void *handle; |
|
61 gchar *device; |
|
62 gint bytes_per_sample; |
|
63 GstCaps *probed_caps; |
|
64 |
|
65 GstDevsoundUpdate pending; |
|
66 |
|
67 //properties |
|
68 gint priority; |
|
69 gint preference; |
|
70 gulong fourcc; |
|
71 gint channels; |
|
72 gint rate; |
|
73 gint gain; |
|
74 gint maxgain; |
|
75 gint leftbalance; |
|
76 gint rightbalance; |
|
77 gint samplesrecorded; |
|
78 GList* fmt; |
|
79 GList* supportedbitrates; |
|
80 |
|
81 guint speechbitrate; |
|
82 gboolean speechvadmode; |
|
83 gint g711encodemode; |
|
84 gboolean g711vadmode; |
|
85 gboolean g729vadmode; |
|
86 gint ilbcencodemode; |
|
87 gboolean ilbcvadmode; |
|
88 |
|
89 |
|
90 }; |
|
91 |
|
92 struct _GstDevsoundSrcClass { |
|
93 GstPushSrcClass parent_class; |
|
94 }; |
|
95 |
|
96 GType gst_devsound_src_get_type(void); |
|
97 |
|
98 G_END_DECLS |
|
99 |
|
100 #endif /* __GST_DEVSOUNDSINK_H__ */ |