aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/softseq/adlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sound/softseq/adlib.cpp')
-rw-r--r--engines/sci/sound/softseq/adlib.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/sci/sound/softseq/adlib.cpp b/engines/sci/sound/softseq/adlib.cpp
index 7cfcf0cbaf..5cca3561bf 100644
--- a/engines/sci/sound/softseq/adlib.cpp
+++ b/engines/sci/sound/softseq/adlib.cpp
@@ -162,7 +162,7 @@ class MidiPlayer_Adlib : public MidiPlayer {
public:
MidiPlayer_Adlib() { _driver = new MidiDriver_Adlib(g_system->getMixer()); }
int open(ResourceManager *resMan);
- int getPlayMask(SciVersion soundVersion);
+ byte getPlayId(SciVersion soundVersion);
int getPolyphony() const { return MidiDriver_Adlib::kVoices; }
bool hasRhythmChannel() const { return false; }
void setVolume(byte volume) { static_cast<MidiDriver_Adlib *>(_driver)->setVolume(volume); }
@@ -812,8 +812,15 @@ int MidiPlayer_Adlib::open(ResourceManager *resMan) {
return static_cast<MidiDriver_Adlib *>(_driver)->open(getSciVersion() <= SCI_VERSION_0_LATE);
}
-int MidiPlayer_Adlib::getPlayMask(SciVersion soundVersion) {
- return (soundVersion == SCI_VERSION_0_EARLY) ? 0x01 : 0x04;
+byte MidiPlayer_Adlib::getPlayId(SciVersion soundVersion) {
+ switch (soundVersion) {
+ case SCI_VERSION_0_EARLY:
+ return 0x01;
+ case SCI_VERSION_0_LATE:
+ return 0x04;
+ default:
+ return 0x00;
+ }
}
MidiPlayer *MidiPlayer_Adlib_create() {