summaryrefslogtreecommitdiffstats
path: root/src/polypmixerctrl.h
diff options
context:
space:
mode:
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);