aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorFlorian Kagerer2010-08-20 22:10:15 +0000
committerFlorian Kagerer2010-08-20 22:10:15 +0000
commit74b6fdcae4b82fe77906e1811c03c2ec43c4cc98 (patch)
tree59a4e151746744d68361d792e2d146f28ba1bc58 /sound
parent1b9d95e43c1dce369d8a929ede4b144290729e96 (diff)
downloadscummvm-rg350-74b6fdcae4b82fe77906e1811c03c2ec43c4cc98.tar.gz
scummvm-rg350-74b6fdcae4b82fe77906e1811c03c2ec43c4cc98.tar.bz2
scummvm-rg350-74b6fdcae4b82fe77906e1811c03c2ec43c4cc98.zip
FM-TOWNS AUDIO: fix possible crash
(This crash might have occured on very slow machines or when using valgrind) svn-id: r52245
Diffstat (limited to 'sound')
-rw-r--r--sound/softsynth/fmtowns_pc98/towns_audio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/softsynth/fmtowns_pc98/towns_audio.cpp b/sound/softsynth/fmtowns_pc98/towns_audio.cpp
index bbc4891edc..5c0961b8c3 100644
--- a/sound/softsynth/fmtowns_pc98/towns_audio.cpp
+++ b/sound/softsynth/fmtowns_pc98/towns_audio.cpp
@@ -104,7 +104,8 @@ TownsAudioInterface::TownsAudioInterface(Audio::Mixer *mixer, TownsAudioInterfac
_fmInstruments(0), _pcmInstruments(0), _pcmChan(0), _waveTables(0), _waveTablesTotalDataSize(0),
_baserate(55125.0f / (float)mixer->getOutputRate()), _tickLength(0), _timer(0), _drv(driver),
_pcmSfxChanMask(0), _musicVolume(Audio::Mixer::kMaxMixerVolume), _sfxVolume(Audio::Mixer::kMaxMixerVolume),
- _outputVolumeFlags(0), _outputMuteFlags(0), _ready(false) {
+ _outputVolumeFlags(0), _outputMuteFlags(0), _pcmChanOut(0), _pcmChanReserved(0), _pcmChanKeyPressed(0),
+ _pcmChanEffectPlaying(0), _pcmChanKeyPlaying(0), _ready(false) {
#define INTCB(x) &TownsAudioInterface::intf_##x
static const TownsAudioIntfCallback intfCb[] = {