From c7c809ecba1ce0dd005c9235f189021558f4b984 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Apr 2009 22:17:52 +0200 Subject: output_control: close mixer on pause For non-global mixers (only "pulse" currently), close the mixer when MPD playback is paused. --- src/output_control.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/output_control.c b/src/output_control.c index 4131594f0..eac9bdfcb 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -137,6 +137,12 @@ audio_output_play(struct audio_output *ao) void audio_output_pause(struct audio_output *ao) { + if (ao->mixer != NULL && ao->plugin->pause == NULL) + /* the device has no pause mode: close the mixer, + unless its "global" flag is set (checked by + mixer_auto_close()) */ + mixer_auto_close(ao->mixer); + ao_command_async(ao, AO_COMMAND_PAUSE); } -- cgit v1.2.3