[gst-devel] One question about Mixer interface

Tim Müller t.i.m at zen.co.uk
Tue Jul 25 10:57:00 CEST 2006

On Mon, 2006-07-24 at 21:19 +0900, 이건용 wrote:

> I want to know how can we get Mixer interfaces to control volumes in alsamixer.
> I think that I can get pointer of GstMixer by using gst_implements_interface_cast().
> but gst_element_implements_interface() always return FALSE.
> Is it wrong method?
> Please let me know how can I control alsamixer's volume.
> .....................
>  alsa_mix = gst_element_factory_make("alsamixer", "alsa mixer00");
>  if( !gst_element_implements_interface(alsa_mix, GST_TYPE_MIXER) )
>  {
>   g_warning("cannot found GST_TYPE_MIXER");
>  }

You'll have to set the element to READY state first to open the device
(don't ask ... ;)).


More information about the gstreamer-devel mailing list