diff options
author | Travis Howell | 2006-10-15 08:08:50 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-15 08:08:50 +0000 |
commit | 2381b229ffc420ac492c467f1fd5c9fc20b9e80c (patch) | |
tree | 4d51816d2a61199e0a0959a6f9e33759f4503c07 | |
parent | 707b733f431edaad0dba91e4d66b5cf21b2b2355 (diff) | |
download | scummvm-rg350-2381b229ffc420ac492c467f1fd5c9fc20b9e80c.tar.gz scummvm-rg350-2381b229ffc420ac492c467f1fd5c9fc20b9e80c.tar.bz2 scummvm-rg350-2381b229ffc420ac492c467f1fd5c9fc20b9e80c.zip |
Only stop the required sound channel, when switching sound files
svn-id: r24335
-rw-r--r-- | engines/agos/sound.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index 04b932a261..35770971c5 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -488,7 +488,7 @@ void Sound::readSfxFile(const char *filename) { if (_hasEffectsFile) return; - stopAll(); + _mixer->stopHandle(_effectsHandle); File *file = new File(); file->open(filename); @@ -514,7 +514,7 @@ void Sound::loadSfxTable(File *gameFile, uint32 base) { } void Sound::readVoiceFile(const char *filename) { - stopAll(); + _mixer->stopHandle(_voiceHandle); File *file = new File(); file->open(filename); @@ -529,7 +529,7 @@ void Sound::readVoiceFile(const char *filename) { void Sound::playVoice(uint sound) { if (_filenums) { if (_lastVoiceFile != _filenums[sound]) { - stopAll(); + _mixer->stopHandle(_voiceHandle); char filename[16]; _lastVoiceFile = _filenums[sound]; @@ -739,7 +739,7 @@ void Sound::switchVoiceFile(const GameSpecificSettings *gss, uint disc) { if (_lastVoiceFile == disc) return; - stopAll(); + _mixer->stopHandle(_voiceHandle); delete _voice; _hasVoiceFile = false; |