diff options
author | Paweł Kołodziejski | 2002-10-27 19:32:36 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-27 19:32:36 +0000 |
commit | bf3505da5c161a448c0431c2ae0c81368a7ae673 (patch) | |
tree | c1421f7c6efb45277febcc1263ae1fa64a0cdb13 /scumm/imuse.cpp | |
parent | f9195c154c3631e1f9125496063f97c913aee737 (diff) | |
download | scummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.tar.gz scummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.tar.bz2 scummvm-rg350-bf3505da5c161a448c0431c2ae0c81368a7ae673.zip |
don't put samples into stream SoundMixer if sound card is disabled
svn-id: r5338
Diffstat (limited to 'scumm/imuse.cpp')
-rw-r--r-- | scumm/imuse.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp index b23472ead4..0c2949375e 100644 --- a/scumm/imuse.cpp +++ b/scumm/imuse.cpp @@ -5437,12 +5437,14 @@ void IMuseDigital::handler() { } } - if (_channel[l]._initialized == false) { - _scumm->_mixer->playStream(NULL, l, buf, mixer_size, - _channel[l]._freq, _channel[l]._mixerFlags, 3, 2000000); - _channel[l]._initialized = true; - } else { - _scumm->_mixer->append(l, buf, mixer_size, _channel[l]._freq, _channel[l]._mixerFlags); + if (_scumm->_silentDigitalImuse == false) { + if (_channel[l]._initialized == false) { + _scumm->_mixer->playStream(NULL, l, buf, mixer_size, + _channel[l]._freq, _channel[l]._mixerFlags, 3, 2000000); + _channel[l]._initialized = true; + } else { + _scumm->_mixer->append(l, buf, mixer_size, _channel[l]._freq, _channel[l]._mixerFlags); + } } } } |