From bfce294151a589c1d91d982d78eba47d16158713 Mon Sep 17 00:00:00 2001 From: "Jan D. Behrens" Date: Sat, 10 Jul 2010 16:27:41 +0200 Subject: Mute pulseaudio volume before calling streamer_reset to avoid cracking noises --- plugins/pulse/pulse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/pulse') diff --git a/plugins/pulse/pulse.c b/plugins/pulse/pulse.c index 05b278db..cd8f426c 100644 --- a/plugins/pulse/pulse.c +++ b/plugins/pulse/pulse.c @@ -143,8 +143,11 @@ static int pulse_play(void) static int pulse_stop(void) { + float vol = deadbeef->volume_get_amp(); + deadbeef->volume_set_amp(0.0); state = OUTPUT_STATE_STOPPED; deadbeef->streamer_reset(1); + deadbeef->volume_set_amp(vol); return 0; } -- cgit v1.2.3