diff options
author | Paul Gilbert | 2018-07-04 21:48:53 -0700 |
---|---|---|
committer | Paul Gilbert | 2018-07-04 21:48:53 -0700 |
commit | 52f110325c440cad4f752925ddd07b19cf242e44 (patch) | |
tree | bd74ec5826ad6f713c7e56ce132a56086ee67f21 /engines | |
parent | 3128e5294e3d7f2bbcd2e0528b8507b691b6064a (diff) | |
download | scummvm-rg350-52f110325c440cad4f752925ddd07b19cf242e44.tar.gz scummvm-rg350-52f110325c440cad4f752925ddd07b19cf242e44.tar.bz2 scummvm-rg350-52f110325c440cad4f752925ddd07b19cf242e44.zip |
XEEN: Call audio cd manager open/close in engine init/deinit
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/sound.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/xeen/sound.cpp b/engines/xeen/sound.cpp index 5148a006b5..a9f0ca6fe0 100644 --- a/engines/xeen/sound.cpp +++ b/engines/xeen/sound.cpp @@ -22,6 +22,7 @@ #include "audio/decoders/raw.h" #include "audio/decoders/voc.h" +#include "backends/audiocd/audiocd.h" #include "common/config-manager.h" #include "xeen/sound.h" #include "xeen/sound_driver_adlib.h" @@ -33,10 +34,14 @@ Sound::Sound(Audio::Mixer *mixer) : _mixer(mixer), _fxOn(true), _musicOn(true), _songData(nullptr), _effectsData(nullptr), _musicSide(0), _musicPercent(100), _musicVolume(0), _sfxVolume(0) { _SoundDriver = new SoundDriverAdlib(); + if (g_vm->getIsCD()) + g_system->getAudioCDManager()->open(); } Sound::~Sound() { stopAllAudio(); + if (g_vm->getIsCD()) + g_system->getAudioCDManager()->close(); delete _SoundDriver; delete[] _effectsData; |