From 412a152e6bd64e70d82a9a8820face2e7204f127 Mon Sep 17 00:00:00 2001 From: Scott Thomas Date: Mon, 11 Apr 2011 19:27:28 +0930 Subject: GROOVIE: T7G iOS patches in 7/11 soundtrack files during intro sequence --- engines/groovie/music.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/groovie/music.cpp b/engines/groovie/music.cpp index bc8131379b..3bbac2a570 100644 --- a/engines/groovie/music.cpp +++ b/engines/groovie/music.cpp @@ -768,10 +768,17 @@ bool MusicPlayerMPEG4::load(uint32 fileref, bool loop) { if (len < 4) return false; // This shouldn't actually occur - // RL still says xmi, but we're after external m4a - info.filename.setChar('m', len-3); - info.filename.setChar('4', len-2); - info.filename.setChar('a', len-1); + // iOS port provides alternative intro sequence music + if (info.filename == "gu39.xmi") { + info.filename = "intro.m4a"; + } else if (info.filename == "gu32.xmi") { + info.filename = "foyer.m4a"; + } else { + // RL still says xmi, but we're after external m4a + info.filename.setChar('m', len-3); + info.filename.setChar('4', len-2); + info.filename.setChar('a', len-1); + } // Create the audio stream Audio::AudioStream *audStream = Audio::makeQuickTimeStream(info.filename); -- cgit v1.2.3