From f578f49e3265bfed6bd7e37391e66506f9a4bc91 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 May 2006 20:14:38 +0000 Subject: * implement device probing for GstPolypMixer git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@25 bb39ca4e-bce3-0310-b5d4-eea78a553289 --- src/polypmixerctrl.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/polypmixerctrl.h') 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; \ -- cgit