diff options
Diffstat (limited to 'saga/actor.cpp')
-rw-r--r-- | saga/actor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp index c699a63d4a..2f92031c09 100644 --- a/saga/actor.cpp +++ b/saga/actor.cpp @@ -30,6 +30,7 @@ Hardcoded actor table present in r_actordata.c */ +#include "saga.h" #include "reinherit.h" #include "yslib.h" @@ -42,7 +43,7 @@ #include "console_mod.h" #include "rscfile_mod.h" #include "script_mod.h" -#include "sndres_mod.h" +#include "sndres.h" #include "sprite_mod.h" #include "font_mod.h" #include "text_mod.h" @@ -678,7 +679,7 @@ HandleSpeakIntent(R_ACTOR * actor, if (!a_dialogue->d_playing) { /* Dialogue voice hasn't played yet - play it now */ - SND_PlayVoice(a_dialogue->d_voice_rn); + _vm->_snd->playVoice(a_dialogue->d_voice_rn); a_dialogue->d_playing = 1; } @@ -732,7 +733,7 @@ int ACTOR_GetSpeechTime(const char *d_string, uint d_voice_rn) { int voice_len; - voice_len = SND_GetVoiceLength(d_voice_rn); + voice_len = _vm->_snd->getVoiceLength(d_voice_rn); if (voice_len < 0) { voice_len = strlen(d_string) * ACTOR_DIALOGUE_LETTERTIME; |