diff options
author | Torbjörn Andersson | 2008-07-06 18:37:52 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-07-06 18:37:52 +0000 |
commit | 1cc9af6b1023d438193587171890bf2ca7d5adbf (patch) | |
tree | b972d3e52b7de613c1fb1b7c835dacbed0e540a4 /engines/kyra/sound.cpp | |
parent | 95ca13246eed820a3513ab91a517283a1263cc46 (diff) | |
download | scummvm-rg350-1cc9af6b1023d438193587171890bf2ca7d5adbf.tar.gz scummvm-rg350-1cc9af6b1023d438193587171890bf2ca7d5adbf.tar.bz2 scummvm-rg350-1cc9af6b1023d438193587171890bf2ca7d5adbf.zip |
Implemented Good Enough(TM) XMIDI looping. This is used by Kyrandia 2 (the
loop hack is no longer needed, and has been removed), and will be used by
Discworld.
svn-id: r32930
Diffstat (limited to 'engines/kyra/sound.cpp')
-rw-r--r-- | engines/kyra/sound.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/engines/kyra/sound.cpp b/engines/kyra/sound.cpp index f56c43aabd..c768255272 100644 --- a/engines/kyra/sound.cpp +++ b/engines/kyra/sound.cpp @@ -249,21 +249,6 @@ void SoundMidiPC::close() { } void SoundMidiPC::send(uint32 b) { - // HACK: For Kyrandia, we make the simplifying assumption that a song - // either loops in its entirety, or not at all. So if we see a FOR_LOOP - // controller event, we turn on looping even if there isn't any - // corresponding NEXT_BREAK event. - // - // This is a gross over-simplification of how XMIDI handles loops. If - // anyone feels like doing a proper implementation, please refer to - // the Exult project, and do it in midiparser_xmidi.cpp - - if ((b & 0xFFF0) == 0x74B0 && _eventFromMusic) { - debugC(9, kDebugLevelMain | kDebugLevelSound, "SoundMidiPC: Looping song"); - _musicParser->property(MidiParser::mpAutoLoop, true); - return; - } - if (_passThrough) { if ((b & 0xFFF0) == 0x007BB0) return; |