SCI: Rewrote the robot playing code in a way similar to other video decoders
- The code now streams videos instead of loading them in memory, without utilizing seeking - Removed the sound-related robot code from the graphics classes - Started implementing the code for the sound in robot videos (still not finished) svn-id: r55772
This commit is contained in:
parent
94b6d23d44
commit
512bcf8b90
9 changed files with 193 additions and 291 deletions
|
@ -121,7 +121,6 @@ Console::Console(SciEngine *engine) : GUI::Debugger(),
|
|||
DCmd_Register("draw_cel", WRAP_METHOD(Console, cmdDrawCel));
|
||||
#ifdef ENABLE_SCI32
|
||||
DCmd_Register("draw_robot", WRAP_METHOD(Console, cmdDrawRobot));
|
||||
DCmd_Register("play_robot_audio", WRAP_METHOD(Console, cmdPlayRobotAudio));
|
||||
#endif
|
||||
DCmd_Register("undither", WRAP_METHOD(Console, cmdUndither));
|
||||
DCmd_Register("pic_visualize", WRAP_METHOD(Console, cmdPicVisualize));
|
||||
|
@ -1529,23 +1528,6 @@ bool Console::cmdDrawRobot(int argc, const char **argv) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Console::cmdPlayRobotAudio(int argc, const char **argv) {
|
||||
if (argc < 2) {
|
||||
DebugPrintf("Draws frames from a robot resource\n");
|
||||
DebugPrintf("Usage: %s <resourceId>\n", argv[0]);
|
||||
DebugPrintf("where <resourceId> is the id of the robot resource to draw\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
uint16 resourceId = atoi(argv[1]);
|
||||
|
||||
if (_engine->_gfxPaint32) {
|
||||
_engine->_gfxPaint32->debugPlayRobotAudio(resourceId);
|
||||
} else {
|
||||
DebugPrintf("command not available in non-sci32 games");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool Console::cmdUndither(int argc, const char **argv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue