aboutsummaryrefslogtreecommitdiff
path: root/saga/ite_introproc.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2004-04-28 23:10:59 +0000
committerEugene Sandulenko2004-04-28 23:10:59 +0000
commit1ad6498bd5a650a39e343e87b33e02afb21abbef (patch)
tree20a5f695cd7a76b00ea7519d70e6e01e5a32e218 /saga/ite_introproc.cpp
parentb59c8004a5ae25b96b0feb76784c4d10591f2dc8 (diff)
downloadscummvm-rg350-1ad6498bd5a650a39e343e87b33e02afb21abbef.tar.gz
scummvm-rg350-1ad6498bd5a650a39e343e87b33e02afb21abbef.tar.bz2
scummvm-rg350-1ad6498bd5a650a39e343e87b33e02afb21abbef.zip
Objectize sndres.cpp
svn-id: r13664
Diffstat (limited to 'saga/ite_introproc.cpp')
-rw-r--r--saga/ite_introproc.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/saga/ite_introproc.cpp b/saga/ite_introproc.cpp
index 7aa485009c..329a07f5f8 100644
--- a/saga/ite_introproc.cpp
+++ b/saga/ite_introproc.cpp
@@ -27,15 +27,11 @@
Notes:
*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "saga.h"
+#include "reinherit.h"
#include "yslib.h"
-#include "reinherit.h"
-
/*
* Uses the following modules:
\*--------------------------------------------------------------------------*/
@@ -46,7 +42,7 @@
#include "game_mod.h"
#include "rscfile_mod.h"
#include "scene_mod.h"
-#include "sndres_mod.h"
+#include "sndres.h"
#include "text_mod.h"
#include "palanim_mod.h"
@@ -354,7 +350,7 @@ int ITE_IntroCave1Proc(int param, R_SCENE_INFO * scene_info)
q_event = EVENT_Chain(q_event, &event);
voice_len =
- SND_GetVoiceLength(IntroDiag[i].i_voice_rn);
+ _vm->_snd->getVoiceLength(IntroDiag[i].i_voice_rn);
if (voice_len < 0) {
voice_len = strlen(IntroDiag[i].i_str) *
VOICE_LETTERLEN;
@@ -474,7 +470,7 @@ int ITE_IntroCave2Proc(int param, R_SCENE_INFO * scene_info)
q_event = EVENT_Chain(q_event, &event);
voice_len =
- SND_GetVoiceLength(IntroDiag[i].i_voice_rn);
+ _vm->_snd->getVoiceLength(IntroDiag[i].i_voice_rn);
if (voice_len < 0) {
voice_len = strlen(IntroDiag[i].i_str) *
VOICE_LETTERLEN;
@@ -592,7 +588,7 @@ int ITE_IntroCave3Proc(int param, R_SCENE_INFO * scene_info)
q_event = EVENT_Chain(q_event, &event);
voice_len =
- SND_GetVoiceLength(IntroDiag[i].i_voice_rn);
+ _vm->_snd->getVoiceLength(IntroDiag[i].i_voice_rn);
if (voice_len < 0) {
voice_len = strlen(IntroDiag[i].i_str) *
VOICE_LETTERLEN;
@@ -709,7 +705,7 @@ int ITE_IntroCave4Proc(int param, R_SCENE_INFO * scene_info)
q_event = EVENT_Chain(q_event, &event);
voice_len =
- SND_GetVoiceLength(IntroDiag[i].i_voice_rn);
+ _vm->_snd->getVoiceLength(IntroDiag[i].i_voice_rn);
if (voice_len < 0) {
voice_len = strlen(IntroDiag[i].i_str) *
VOICE_LETTERLEN;