mpd/src/mixer
Max Kellermann 617a4fd2d2 mixer: added flag "open"
Remember if a mixer object is open or closed.  Don't call open() again
if it is already open.  This guarantees that the mixer plugin is
always called in a consistent state, and we will be able to remove
lots of checks from the implementations.

To support mixers which are automatically opened even if the audio
output is still closed (to set the volume before playback starts),
this patch also adds the "global" flag to the mixer_plugin struct.
Both ALSA and OSS set this flag, while PULSE does not.
2009-03-26 19:43:18 +01:00
..
alsa_mixer.c mixer: added flag "open" 2009-03-26 19:43:18 +01:00
oss_mixer.c mixer: added flag "open" 2009-03-26 19:43:18 +01:00
pulse_mixer.c pulse_mixer: keep mixer attached when another pulse sink is closed. 2009-03-17 08:40:50 +01:00