diff options
author | Torbjörn Andersson | 2003-09-16 07:06:17 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-16 07:06:17 +0000 |
commit | bc90c04c25638f151f69ab77b833d49b26df52ff (patch) | |
tree | 8d89f65553d956a5b6df080f0894e25941c32ef9 | |
parent | e0129c34e7124a3b544fa4e5700e83a20d8d66bd (diff) | |
download | scummvm-rg350-bc90c04c25638f151f69ab77b833d49b26df52ff.tar.gz scummvm-rg350-bc90c04c25638f151f69ab77b833d49b26df52ff.tar.bz2 scummvm-rg350-bc90c04c25638f151f69ab77b833d49b26df52ff.zip |
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
-rw-r--r-- | sound/mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |