aboutsummaryrefslogtreecommitdiff
path: root/saga/sndres.h
diff options
context:
space:
mode:
authorEugene Sandulenko2005-08-07 00:00:43 +0000
committerEugene Sandulenko2005-08-07 00:00:43 +0000
commit215a94ae30082e396ab6179e26ab6e182602f8a7 (patch)
tree6404c4d54735610814ca9238b7d38372a0b36a19 /saga/sndres.h
parent5956747e2e9d38defe5684a67992dfc6dba58cf4 (diff)
downloadscummvm-rg350-215a94ae30082e396ab6179e26ab6e182602f8a7.tar.gz
scummvm-rg350-215a94ae30082e396ab6179e26ab6e182602f8a7.tar.bz2
scummvm-rg350-215a94ae30082e396ab6179e26ab6e182602f8a7.zip
WIP on metaResources. Most resources are load. Now we start correct
scene. But there are following problems: o Inclomplete support for actors speech, so opSpeak is skipped o For some weird reason actors do not appear at all. Actually code seems to be trying to read only protagonist frames o It crashes on reading sprites due to wrong input svn-id: r18624
Diffstat (limited to 'saga/sndres.h')
-rw-r--r--saga/sndres.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/saga/sndres.h b/saga/sndres.h
index 0a7c3c129c..b4b985979d 100644
--- a/saga/sndres.h
+++ b/saga/sndres.h
@@ -26,6 +26,7 @@
#ifndef SAGA_SNDRES_H_
#define SAGA_SNDRES_H_
+#include "saga/itedata.h"
#include "saga/sound.h"
namespace Saga {
@@ -34,12 +35,20 @@ class SndRes {
public:
SndRes(SagaEngine *vm);
+ ~SndRes();
int loadSound(uint32 resourceId);
void playSound(uint32 resourceId, int volume, bool loop);
void playVoice(uint32 resourceId);
int getVoiceLength(uint32 resourceId);
void setVoiceBank(int serial);
+
+ FxTable *_fxTable;
+ int _fxTableLen;
+
+ int16 *_fxTableIDs;
+ int _fxTableIDsLen;
+
private:
bool load(ResourceContext *context, uint32 resourceId, SoundBuffer &buffer, bool onlyHeader);
bool loadVocSound(byte *soundResource, size_t soundResourceLength, SoundBuffer &buffer);