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/sound.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/sound.cpp')
-rw-r--r-- | scumm/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 49a5530930..acd7bf9165 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -925,6 +925,10 @@ static void music_handler (void * engine) { #define OUTPUT_SIZE 66150 // ((22050 * 2 * 2) / 4) * 3 void Sound::playBundleMusic(char * song) { + if (_scumm->_silentDigitalImuse == true) { + return; + } + if (_nameBundleMusic == NULL) { if (_scumm->_bundle->openMusicFile("digmusic.bun", _scumm->getGameDataPath()) == false) { return; |