From bc90c04c25638f151f69ab77b833d49b26df52ff Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 16 Sep 2003 07:06:17 +0000 Subject: Don't call the premix function when the mixer is paused. (This is particularly noticeable in games with PC speaker emulation, but I could hear faint noises in AdLib music as well.) svn-id: r10262 --- sound/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound') diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 20495e94ab..da5952ecf4 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -278,7 +278,7 @@ int SoundMixer::playVorbis(PlayingSoundHandle *handle, OggVorbis_File *ov_file, void SoundMixer::mix(int16 *buf, uint len) { StackLock lock(_mutex); - if (_premixProc) { + if (_premixProc && !_paused) { int i; _premixProc(_premixParam, buf, len); // Convert mono data from the premix proc to stereo -- cgit v1.2.3