aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/sound.cpp
diff options
context:
space:
mode:
authorD G Turner2013-10-02 05:34:27 +0100
committerD G Turner2013-10-02 05:34:27 +0100
commitc71b1495236447ef66d2730a797f451d4ee4db21 (patch)
tree52541f892cc074eff717afcee342a4ec2c88f05b /engines/cine/sound.cpp
parent93e5f1fddc9756b7a57a9d82d0cc5f1ca52462de (diff)
downloadscummvm-rg350-c71b1495236447ef66d2730a797f451d4ee4db21.tar.gz
scummvm-rg350-c71b1495236447ef66d2730a797f451d4ee4db21.tar.bz2
scummvm-rg350-c71b1495236447ef66d2730a797f451d4ee4db21.zip
CINE: Ensure that Adlib driver callbacks are initialized. CID 1003411.
Diffstat (limited to 'engines/cine/sound.cpp')
-rw-r--r--engines/cine/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp
index 10404ae56b..0df926675e 100644
--- a/engines/cine/sound.cpp
+++ b/engines/cine/sound.cpp
@@ -281,7 +281,7 @@ void PCSoundDriver::resetChannel(int channel) {
}
AdLibSoundDriver::AdLibSoundDriver(Audio::Mixer *mixer)
- : _mixer(mixer) {
+ : _upCb(0), _upRef(0), _mixer(mixer) {
_sampleRate = _mixer->getOutputRate();
_opl = makeAdLibOPL(_sampleRate);
memset(_channelsVolumeTable, 0, sizeof(_channelsVolumeTable));