aboutsummaryrefslogtreecommitdiff
path: root/sword2/sound.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-30 09:27:27 +0000
committerTorbjörn Andersson2003-09-30 09:27:27 +0000
commit568a4bd8394e8ada14c6dabb1dda149c8e5f5608 (patch)
treeb96d7c29d6c68b9dbe549242e93993e1cfd195fe /sword2/sound.cpp
parente70fcf1737812b3afa35f5350ba80e07d8359569 (diff)
downloadscummvm-rg350-568a4bd8394e8ada14c6dabb1dda149c8e5f5608.tar.gz
scummvm-rg350-568a4bd8394e8ada14c6dabb1dda149c8e5f5608.tar.bz2
scummvm-rg350-568a4bd8394e8ada14c6dabb1dda149c8e5f5608.zip
Changed the resource manager object to use more ScummVM-like naming.
svn-id: r10499
Diffstat (limited to 'sword2/sound.cpp')
-rw-r--r--sword2/sound.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/sword2/sound.cpp b/sword2/sound.cpp
index a1d1093129..b35baa3589 100644
--- a/sword2/sound.cpp
+++ b/sword2/sound.cpp
@@ -109,12 +109,12 @@ void Trigger_fx(uint8 j) {
if (fxq[j].type == FX_SPOT) {
// load in the sample
- data = res_man.Res_open(fxq[j].resource);
+ data = res_man.open(fxq[j].resource);
data += sizeof(_standardHeader);
// wav data gets copied to sound memory
rv = g_sound->PlayFx(id, data, fxq[j].volume, fxq[j].pan, RDSE_FXSPOT);
// release the sample
- res_man.Res_close(fxq[j].resource);
+ res_man.close(fxq[j].resource);
} else {
// random & looped fx are already loaded into sound memory
// by FN_play_fx()
@@ -204,7 +204,7 @@ int32 FN_play_fx(int32 *params) {
if (fxq[j].type == FX_SPOT) {
// "pre-load" the sample; this gets it into memory
- data = res_man.Res_open(fxq[j].resource);
+ data = res_man.open(fxq[j].resource);
#ifdef _SWORD2_DEBUG
header = (_standardHeader*) data;
@@ -213,14 +213,14 @@ int32 FN_play_fx(int32 *params) {
#endif
// but then releases it to "age" out if the space is needed
- res_man.Res_close(fxq[j].resource);
+ res_man.close(fxq[j].resource);
} else {
// random & looped fx
id = (uint32) j + 1; // because 0 is not a valid id
// load in the sample
- data = res_man.Res_open(fxq[j].resource);
+ data = res_man.open(fxq[j].resource);
#ifdef _SWORD2_DEBUG
header = (_standardHeader*)data;
@@ -237,7 +237,7 @@ int32 FN_play_fx(int32 *params) {
debug(5, "SFX ERROR: OpenFx() returned %.8x", rv);
// release the sample
- res_man.Res_close(fxq[j].resource);
+ res_man.close(fxq[j].resource);
}
// (James07uag97)
@@ -399,7 +399,7 @@ int32 FN_play_music(int32 *params) {
} else {
File f;
- sprintf(filename, "music%d.clu", res_man.WhichCd());
+ sprintf(filename, "music%d.clu", res_man.whichCd());
if (f.open(filename))
f.close();
else