aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/softseq/pcjr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sound/softseq/pcjr.cpp')
-rw-r--r--engines/sci/sound/softseq/pcjr.cpp28
1 files changed, 18 insertions, 10 deletions
diff --git a/engines/sci/sound/softseq/pcjr.cpp b/engines/sci/sound/softseq/pcjr.cpp
index c7dd2f6528..569548c33a 100644
--- a/engines/sci/sound/softseq/pcjr.cpp
+++ b/engines/sci/sound/softseq/pcjr.cpp
@@ -192,18 +192,26 @@ void MidiDriver_PCJr::close() {
_mixer->stopHandle(_mixerSoundHandle);
}
-int MidiPlayer_PCJr::getPlayMask(SciVersion soundVersion) {
- if (soundVersion == SCI_VERSION_0_EARLY)
- return 0x10; // FIXME: Not correct
-
- return 0x10;
-}
-
-int MidiPlayer_PCSpeaker::getPlayMask(SciVersion soundVersion) {
- if (soundVersion == SCI_VERSION_0_EARLY)
+byte MidiPlayer_PCJr::getPlayId(SciVersion soundVersion) {
+ switch (soundVersion) {
+ case SCI_VERSION_0_EARLY:
return 0x02;
+ case SCI_VERSION_0_LATE:
+ return 0x10;
+ default:
+ return 0x13;
+ }
+}
- return 0x20;
+byte MidiPlayer_PCSpeaker::getPlayId(SciVersion soundVersion) {
+ switch (soundVersion) {
+ case SCI_VERSION_0_EARLY:
+ return 0x04;
+ case SCI_VERSION_0_LATE:
+ return 0x20;
+ default:
+ return 0x12;
+ }
}
} // End of namespace Sci