[gst-devel] ALSA mixer implementation

Benjamin Otte in7y118 at public.uni-hamburg.de
Mon Nov 17 04:31:17 CET 2003


On Sun, 16 Nov 2003, Leif Johnson wrote:

> I'm wondering if we should alter the GstMixer API to make the
> distinction for playback and capture volumes visible (i.e. have
> {get|set}_{play|rec}_volume instead of the current {get|set}_volume) ? I
> don't know of any cards that have simultaneous capture and playback in
> any given mixer track (e.g. pcm, line in, mic in, line out, etc.) but I
> don't know if it's impossible. Without distinct volume controls,
> GstMixer interface users won't be able to set a record volume on a track
> flagged as playback, and vice versa. But with distinct controls, the
> interface becomes a bit less clean.
>
> I'm leaning toward keeping things simple and doing the magic in the ALSA
> code. Any comments would be helpful, though.
>
I think it'd be easier to just make 2 GstMixer volumes visible, one for
recording and one for playback.

Especially because you can't use every ALSA channel for recording _and_
playback anyway.


Benjamin





More information about the gstreamer-devel mailing list