aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v2.h
diff options
context:
space:
mode:
authorJohannes Schickel2007-10-13 06:57:47 +0000
committerJohannes Schickel2007-10-13 06:57:47 +0000
commitda9479dfb80d1849a75ed106564360e6978e48bb (patch)
tree4a1eeb085f90c423178e82270995640ef122d8e8 /engines/kyra/kyra_v2.h
parentefcc80dffaf1dcdd4d02cf4417085f9b8a37a4f9 (diff)
downloadscummvm-rg350-da9479dfb80d1849a75ed106564360e6978e48bb.tar.gz
scummvm-rg350-da9479dfb80d1849a75ed106564360e6978e48bb.tar.bz2
scummvm-rg350-da9479dfb80d1849a75ed106564360e6978e48bb.zip
- moved some voice functionallity from KyraEngine_v1 to KyraEngine
HoF: - added voice support - implemented opcodes -> o2_setVocHigh 167 -> o2_getVocHigh 168 -> o2_isVoiceEnabled 170 -> o2_isVoicePlaying 171 -> o2_stopVoicePlaying 172 -> o2_getGameLanguage 173 svn-id: r29201
Diffstat (limited to 'engines/kyra/kyra_v2.h')
-rw-r--r--engines/kyra/kyra_v2.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v2.h b/engines/kyra/kyra_v2.h
index aebc8980e7..c0cdcb0c32 100644
--- a/engines/kyra/kyra_v2.h
+++ b/engines/kyra/kyra_v2.h
@@ -501,10 +501,13 @@ protected:
int _msgUnk1;
// chat
+ int _vocHigh;
+
const char *_chatText;
int _chatObject;
bool _chatIsNote;
uint32 _chatEndTime;
+ int _chatVocHigh, _chatVocLow;
ScriptData _chatScriptData;
ScriptState _chatScriptState;
@@ -512,14 +515,21 @@ protected:
int chatGetType(const char *text);
int chatCalcDuration(const char *text);
- void objectChat(const char *text, int object, int unk1, int unk2);
- void objectChatInit(const char *text, int object, int unk1, int unk2);
+ void objectChat(const char *text, int object, int vocHigh, int vocLow);
+ void objectChatInit(const char *text, int object, int vocHigh, int vocLow);
void objectChatPrintText(const char *text, int object);
void objectChatProcess(const char *script);
void objectChatWaitToFinish();
// sound
+ int _oldTalkFile;
+ int _currentTalkFile;
+ void openTalkFile(int newFile);
+
+ virtual void snd_playVoiceFile(int id);
void snd_loadSoundFile(int id);
+
+ void playVoice(int high, int low);
// timer
void timerFunc2(int);
@@ -584,7 +594,13 @@ protected:
int o2_querySpecialSceneScriptState(ScriptState *script);
int o2_customChat(ScriptState *script);
int o2_customChatFinish(ScriptState *script);
+ int o2_setVocHigh(ScriptState *script);
+ int o2_getVocHigh(ScriptState *script);
int o2_zanthiaChat(ScriptState *script);
+ int o2_isVoiceEnabled(ScriptState *script);
+ int o2_isVoicePlaying(ScriptState *script);
+ int o2_stopVoicePlaying(ScriptState *script);
+ int o2_getGameLanguage(ScriptState *script);
int o2_dummy(ScriptState *script);
// opcodes temporary