aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
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);