diff options
author | Jordi Vilalta Prat | 2008-11-25 00:41:51 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-11-25 00:41:51 +0000 |
commit | 834d2c5f2776971d6509996e3ab53108377642a3 (patch) | |
tree | 4735223399ad9362186d7056b3620e25b23b0cc0 /engines/groovie/script.cpp | |
parent | 43607572363194b1f542cb45dfa66e8085474007 (diff) | |
download | scummvm-rg350-834d2c5f2776971d6509996e3ab53108377642a3.tar.gz scummvm-rg350-834d2c5f2776971d6509996e3ab53108377642a3.tar.bz2 scummvm-rg350-834d2c5f2776971d6509996e3ab53108377642a3.zip |
T7G: Enhanced the Audio CD playback. Now the credits music on CD2 should play by ripping it as track 2 (not tested).
svn-id: r35167
Diffstat (limited to 'engines/groovie/script.cpp')
-rw-r--r-- | engines/groovie/script.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index c1cdd1e7d4..bdae0c1337 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -33,7 +33,6 @@ #include "common/endian.h" #include "common/events.h" #include "common/savefile.h" -#include "sound/audiocd.h" #define NUM_OPCODES 90 @@ -1424,16 +1423,16 @@ void Script::o_getcd() { setVariable(0x106, cd); } -void Script::o_opcode4D() { - // TODO: play alternative vie logo, then playcd +void Script::o_playcd() { uint8 val = readScript8bits(); - debugScript(1, true, "PLAYCD? %d", val); + debugScript(1, true, "PLAYCD %d", val); if (val == 2) { - AudioCD.play(1, 1, 0, 0); + // TODO: Play the alternative logo } + _vm->_musicPlayer->playCD(val); } void Script::o_hotspot_outrect() { @@ -1549,7 +1548,7 @@ Script::OpcodeFunc Script::_opcodes[NUM_OPCODES] = { &Script::o_nop16, &Script::o_nop8, &Script::o_getcd, // 0x4C - &Script::o_opcode4D, + &Script::o_playcd, &Script::o_nop16, &Script::o_nop16, &Script::o_nop16, // 0x50 |