summaryrefslogtreecommitdiffstats
path: root/src/polypmixerctrl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/polypmixerctrl.h')
-rw-r--r--src/polypmixerctrl.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/polypmixerctrl.h b/src/polypmixerctrl.h
index 18313c6..4833c6e 100644
--- a/src/polypmixerctrl.h
+++ b/src/polypmixerctrl.h
@@ -56,7 +56,7 @@ struct _GstPolypMixerCtrl {
};
GstPolypMixerCtrl* gst_polypmixer_ctrl_new(const gchar *server, const gchar *device);
-void gst_polypmixer_ctrl_free(GstPolypMixerCtrl *mixer);
+void gst_polypmixer_ctrl_free(GstPolypMixerCtrl*mixer);
const GList* gst_polypmixer_ctrl_list_tracks(GstPolypMixerCtrl *mixer);
void gst_polypmixer_ctrl_set_volume(GstPolypMixerCtrl *mixer, GstMixerTrack *track, gint *volumes);
@@ -65,14 +65,6 @@ void gst_polypmixer_ctrl_set_mute(GstPolypMixerCtrl *mixer, GstMixerTrack *track
void gst_polypmixer_ctrl_set_record(GstPolypMixerCtrl *mixer, GstMixerTrack *track, gboolean record);
#define GST_IMPLEMENT_POLYPMIXER_CTRL_METHODS(Type, interface_as_function) \
-static gboolean \
-interface_as_function ## _supported (Type *this, GType iface_type) \
-{ \
- g_assert (iface_type == GST_TYPE_MIXER); \
- \
- return (this->mixer != NULL); \
-} \
- \
static const GList* \
interface_as_function ## _list_tracks (GstMixer * mixer) \
{ \
@@ -105,7 +97,6 @@ interface_as_function ## _get_volume (GstMixer * mixer, GstMixerTrack * track,
\
gst_polypmixer_ctrl_get_volume (this->mixer, track, volumes); \
} \
- \
static void \
interface_as_function ## _set_record (GstMixer * mixer, GstMixerTrack * track, \
gboolean record) \
@@ -117,7 +108,6 @@ interface_as_function ## _set_record (GstMixer * mixer, GstMixerTrack * track,
\
gst_polypmixer_ctrl_set_record (this->mixer, track, record); \
} \
- \
static void \
interface_as_function ## _set_mute (GstMixer * mixer, GstMixerTrack * track, \
gboolean mute) \
@@ -129,13 +119,11 @@ interface_as_function ## _set_mute (GstMixer * mixer, GstMixerTrack * track,
\
gst_polypmixer_ctrl_set_mute (this->mixer, track, mute); \
} \
- \
static void \
-interface_as_function ## _interface_init (GstMixerClass * klass) \
+interface_as_function ## _mixer_interface_init (GstMixerClass * klass) \
{ \
GST_MIXER_TYPE (klass) = GST_MIXER_HARDWARE; \
\
- /* set up the interface hooks */ \
klass->list_tracks = interface_as_function ## _list_tracks; \
klass->set_volume = interface_as_function ## _set_volume; \
klass->get_volume = interface_as_function ## _get_volume; \