GOB: Tell Geisha that we have no AdLib

The title music is then played from SND files instead of
MDY/TBR files (that we still don't yet support).
This commit is contained in:
Sven Hesse 2011-09-14 21:38:59 +02:00
parent c6bb055941
commit 1998ab500e
3 changed files with 10 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public:
~Init_Geisha();
void initVideo();
void initGame();
};
class Init_v2 : public Init_v1 {

View File

@ -44,4 +44,11 @@ void Init_Geisha::initVideo() {
_vm->_draw->_transparentCursor = 1;
}
void Init_Geisha::initGame() {
// HACK - Since the MDY/TBR player is not working, claim we have no AdLib
_vm->_global->_soundFlags = 0;
Init::initGame();
}
} // End of namespace Gob

View File

@ -434,6 +434,8 @@ void Sound::blasterPlay(SoundDesc *sndDesc, int16 repCount,
debugC(1, kDebugSound, "SoundBlaster: Playing sample (%d, %d, %d)",
repCount, frequency, fadeLength);
blasterStopComposition();
_blaster->playSample(*sndDesc, repCount, frequency, fadeLength);
}