aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/video.h
diff options
context:
space:
mode:
authorRetro-Junk2017-01-23 02:13:32 +0300
committerEugene Sandulenko2017-01-25 22:42:25 +0100
commit963409192551f847d9222c570e7193982ab96bd4 (patch)
tree65e5620c3472296b8409bfbf3fd4d7d1785bea84 /engines/cryo/video.h
parentd23bb8860bf7d561e09f503d12c17b6255fe5670 (diff)
downloadscummvm-rg350-963409192551f847d9222c570e7193982ab96bd4.tar.gz
scummvm-rg350-963409192551f847d9222c570e7193982ab96bd4.tar.bz2
scummvm-rg350-963409192551f847d9222c570e7193982ab96bd4.zip
CRYO: Add sound playback to HNM files (buggy yet)
Diffstat (limited to 'engines/cryo/video.h')
-rw-r--r--engines/cryo/video.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/cryo/video.h b/engines/cryo/video.h
index edd94c6d40..83eddfb9b1 100644
--- a/engines/cryo/video.h
+++ b/engines/cryo/video.h
@@ -23,6 +23,8 @@
#ifndef CRYO_VIDEO_H
#define CRYO_VIDEO_H
+#include "cryo/sound.h"
+
namespace Cryo {
class CryoEngine;
@@ -76,8 +78,7 @@ private:
void (*_customChunkHandler)(byte *buffer, int size, int16 id, char h6, char h7);
- SoundChannel *_soundChannel;
- SoundGroup *_soundGroup;
+ CSoundChannel *_soundChannel;
public:
HnmPlayer(CryoEngine *vm);
@@ -86,7 +87,7 @@ public:
void closeSound();
void deallocMemory();
int getFrameNum();
- SoundChannel *getSoundChannel();
+ CSoundChannel *getSoundChannel();
int16 getVersion();
bool nextElement();
void reset();
@@ -95,7 +96,7 @@ public:
void setFile(Common::File *file);
void setFinalBuffer(byte *buffer);
void setForceZero2Black(bool forceblack);
- void setupSound(int16 numSounds, int16 length, int16 sampleSize, float rate, int16 mode);
+ void setupSound(unsigned int rate, bool stereo, bool is16bits);
void setupTimer(float rate);
void waitLoop();
};