summaryrefslogtreecommitdiffstats
path: root/src/polypmixerctrl.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-05-12 00:20:30 +0000
committerLennart Poettering <lennart@poettering.net>2006-05-12 00:20:30 +0000
commit547ce2fd805f6a008df03e6deef215bbb1bb5c65 (patch)
treea92bc67616a09168bb6b87d7f3d96db62cf8238c /src/polypmixerctrl.h
parent743b4b1ef29046ec07846daa9ae0c2869044c832 (diff)
add mixer interface to GstSource
git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@28 bb39ca4e-bce3-0310-b5d4-eea78a553289
Diffstat (limited to 'src/polypmixerctrl.h')
-rw-r--r--src/polypmixerctrl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/polypmixerctrl.h b/src/polypmixerctrl.h
index 4833c6e..2f22c54 100644
--- a/src/polypmixerctrl.h
+++ b/src/polypmixerctrl.h
@@ -34,6 +34,13 @@ G_BEGIN_DECLS
typedef struct _GstPolypMixerCtrl GstPolypMixerCtrl;
+
+typedef enum {
+ GST_POLYPMIXER_UNKNOWN,
+ GST_POLYPMIXER_SINK,
+ GST_POLYPMIXER_SOURCE }
+GstPolypMixerType;
+
struct _GstPolypMixerCtrl {
GList *tracklist;
@@ -47,7 +54,7 @@ struct _GstPolypMixerCtrl {
pa_cvolume volume;
int muted;
guint32 index;
- enum { GST_POLYPMIXER_UNKNOWN, GST_POLYPMIXER_SINK, GST_POLYPMIXER_SOURCE } type;
+ GstPolypMixerType type;
int operation_success;
GstMixerTrack *track;
@@ -55,7 +62,7 @@ struct _GstPolypMixerCtrl {
pa_time_event *time_event;
};
-GstPolypMixerCtrl* gst_polypmixer_ctrl_new(const gchar *server, const gchar *device);
+GstPolypMixerCtrl* gst_polypmixer_ctrl_new(const gchar *server, const gchar *device, GstPolypMixerType type);
void gst_polypmixer_ctrl_free(GstPolypMixerCtrl*mixer);
const GList* gst_polypmixer_ctrl_list_tracks(GstPolypMixerCtrl *mixer);