aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorLars Skovlund2011-01-22 13:12:01 +0000
committerLars Skovlund2011-01-22 13:12:01 +0000
commitdc27a2202622a1457c3aef038e2037ab080e9d30 (patch)
treeb35ec78b71fb0d8835281d078f3bd602805883d2 /engines/sci/graphics
parentf48cc4119c7cded01331ad28edf5a85ba972252b (diff)
downloadscummvm-rg350-dc27a2202622a1457c3aef038e2037ab080e9d30.tar.gz
scummvm-rg350-dc27a2202622a1457c3aef038e2037ab080e9d30.tar.bz2
scummvm-rg350-dc27a2202622a1457c3aef038e2037ab080e9d30.zip
SCI: Added stub for playing robot audio from the console
svn-id: r55424
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/paint32.cpp8
-rw-r--r--engines/sci/graphics/paint32.h1
-rw-r--r--engines/sci/graphics/robot.cpp5
-rw-r--r--engines/sci/graphics/robot.h1
4 files changed, 15 insertions, 0 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp
index 0167593084..974efd371a 100644
--- a/engines/sci/graphics/paint32.cpp
+++ b/engines/sci/graphics/paint32.cpp
@@ -90,4 +90,12 @@ void GfxPaint32::debugDrawRobot(GuiResourceId robotId) {
delete test;
}
+void GfxPaint32::debugPlayRobotAudio(GuiResourceId robotId) {
+ GfxRobot *test = new GfxRobot(g_sci->getResMan(), _screen, _palette);
+ test->init(robotId, 0, 0);
+ test->playAudio();
+ delete test;
+}
+
+
} // End of namespace Sci
diff --git a/engines/sci/graphics/paint32.h b/engines/sci/graphics/paint32.h
index a048d7f307..7fbaf4594e 100644
--- a/engines/sci/graphics/paint32.h
+++ b/engines/sci/graphics/paint32.h
@@ -49,6 +49,7 @@ public:
void kernelGraphDrawLine(Common::Point startPoint, Common::Point endPoint, int16 color, int16 priority, int16 control);
void debugDrawRobot(GuiResourceId robotId);
+ void debugPlayRobotAudio(GuiResourceId robotId);
private:
ResourceManager *_resMan;
diff --git a/engines/sci/graphics/robot.cpp b/engines/sci/graphics/robot.cpp
index 853e111daa..c2e0796a27 100644
--- a/engines/sci/graphics/robot.cpp
+++ b/engines/sci/graphics/robot.cpp
@@ -292,6 +292,11 @@ int GfxRobot::getFrameScale(int frame) {
byte *videoData = _resourceData + _imageStart[frame];
return videoData[3];
}
+
+void GfxRobot::playAudio() {
+// Audio::Mixer *mixer = g_system->getMixer();
+}
+
#endif
diff --git a/engines/sci/graphics/robot.h b/engines/sci/graphics/robot.h
index d794c4ba60..f26ea84ad3 100644
--- a/engines/sci/graphics/robot.h
+++ b/engines/sci/graphics/robot.h
@@ -41,6 +41,7 @@ public:
uint16 getCurFrame() { return _curFrame; }
uint16 getFrameCount() { return _frameCount; }
bool isPlaying() { return _resourceId != -1; }
+ void playAudio();
private:
void initData(GuiResourceId resourceId);