diff options
author | Jan D. Behrens <zykure@web.de> | 2010-07-10 16:27:41 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-07-27 18:11:10 +0200 |
commit | bfce294151a589c1d91d982d78eba47d16158713 (patch) | |
tree | 922bde36823bea4081797c274db29672af0cbc4a | |
parent | 44f4ea70aea7d3e7d80fd5619d3b301d3abd3632 (diff) |
Mute pulseaudio volume before calling streamer_reset to avoid cracking noises
-rw-r--r-- | plugins/pulse/pulse.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |