From 7867716b6e5619a9df57430d585a909b8bf70e0b Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 24 Dec 2009 16:46:15 +0000 Subject: Obtain channel mask from music drivers. Also, added a warning in cmdReverb() to indicate that it's a stub function svn-id: r46531 --- engines/sci/sfx/music.cpp | 2 +- engines/sci/sfx/music.h | 2 +- engines/sci/sfx/soundcmd.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sci/sfx/music.cpp b/engines/sci/sfx/music.cpp index e0628abe28..105e23d05c 100644 --- a/engines/sci/sfx/music.cpp +++ b/engines/sci/sfx/music.cpp @@ -333,7 +333,7 @@ void SciMusic::soundInitSnd(MusicEntry *pSnd) { pSnd->pMidiParser->setTimerRate(_dwTempo); } // Find out what channels to filter for SCI0 - channelFilterMask = pSnd->soundRes->getChannelFilterMask(0x04); // Adlib hardcoded (TODO) + channelFilterMask = pSnd->soundRes->getChannelFilterMask(_pMidiDrv->getPlayMask()); pSnd->pMidiParser->loadMusic(track, pSnd, channelFilterMask); } } diff --git a/engines/sci/sfx/music.h b/engines/sci/sfx/music.h index 5e9d477453..ccaad506b5 100644 --- a/engines/sci/sfx/music.h +++ b/engines/sci/sfx/music.h @@ -149,7 +149,7 @@ protected: void doFade(MusicEntry *pSnd); Audio::Mixer *_pMixer; - MidiDriver *_pMidiDrv; + MidiPlayer *_pMidiDrv; MidiDriverType _midiType; Common::Mutex _mutex; diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index 6311216f4d..3c8c892127 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -770,7 +770,9 @@ void SoundCommandParser::cmdSendMidi(reg_t obj, int16 value) { void SoundCommandParser::cmdReverb(reg_t obj, int16 value) { // TODO + warning("STUB: cmdReverb"); } + void SoundCommandParser::cmdHoldHandle(reg_t obj, int16 value) { #ifdef USE_OLD_MUSIC_FUNCTIONS SongHandle handle = FROBNICATE_HANDLE(obj); -- cgit v1.2.3