diff options
author | Florian Kagerer | 2009-06-26 17:58:27 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-06-26 17:58:27 +0000 |
commit | 43d61d598ac281b71d7b4cb099bc5b6b5766a35e (patch) | |
tree | c90426b48bcdec9598008adcd156238cb4aa4182 /engines | |
parent | 9f5f2625619d6dbf6eea0d16c6e712939c418cde (diff) | |
download | scummvm-rg350-43d61d598ac281b71d7b4cb099bc5b6b5766a35e.tar.gz scummvm-rg350-43d61d598ac281b71d7b4cb099bc5b6b5766a35e.tar.bz2 scummvm-rg350-43d61d598ac281b71d7b4cb099bc5b6b5766a35e.zip |
KYRA/LOL: fixed minor bug by adding reset() call to pc98 audio driver destructor
svn-id: r41902
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index 3398610924..fe0a44c052 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -3420,6 +3420,8 @@ TownsPC98_OpnDriver::TownsPC98_OpnDriver(Audio::Mixer *mixer, OpnType type) : To } TownsPC98_OpnDriver::~TownsPC98_OpnDriver() { + reset(); + if (_channels) { for (int i = 0; i < _numChan; i++) delete _channels[i]; @@ -4120,7 +4122,7 @@ void SoundPC98::playSoundEffect(uint8 track) { // This has been disabled for now since I don't know // how to make up the correct track number. It probably // needs a map. - //_driver->loadSoundEffectData(_sfxTrackData, track); + _driver->loadSoundEffectData(_sfxTrackData, track); } |