aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse/pcspk.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-07-10 17:26:46 +0200
committerJohannes Schickel2011-07-10 17:42:02 +0200
commit781b7215c43ffc54ce571fb5ba830aa9dff3fcf9 (patch)
tree5eb6489dce9b49d031b66f164dc08c2ec45d1576 /engines/scumm/imuse/pcspk.h
parentdab9c05783c56f6c0b0b3faf65921992bc953954 (diff)
downloadscummvm-rg350-781b7215c43ffc54ce571fb5ba830aa9dff3fcf9.tar.gz
scummvm-rg350-781b7215c43ffc54ce571fb5ba830aa9dff3fcf9.tar.bz2
scummvm-rg350-781b7215c43ffc54ce571fb5ba830aa9dff3fcf9.zip
SCUMM: Fix PC Speaker sound.
Now we only output a new frequency if a new channel was selected or a new output frequency has to be send. This makes the sound much more like in DOSBox. This is not present in the original, but since our timings are different this should make up for that.
Diffstat (limited to 'engines/scumm/imuse/pcspk.h')
-rw-r--r--engines/scumm/imuse/pcspk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/imuse/pcspk.h b/engines/scumm/imuse/pcspk.h
index 3b63ec8199..3f70160988 100644
--- a/engines/scumm/imuse/pcspk.h
+++ b/engines/scumm/imuse/pcspk.h
@@ -145,6 +145,9 @@ private:
MidiChannel_PcSpk _channels[6];
MidiChannel_PcSpk *_activeChannel;
+ MidiChannel_PcSpk *_lastActiveChannel;
+ uint16 _lastActiveOut;
+
static const byte _outInstrumentData[1024];
static const byte _outputTable1[];
static const byte _outputTable2[];