aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2004-12-11 23:34:34 +0000
committerMax Horn2004-12-11 23:34:34 +0000
commit3891c0fa39c35f84b6eea3ad5001125806160938 (patch)
treebfaa7749c5d1eb2301f2a9f0c30372e6782f45ca /simon
parent369e31a41c87a38da018a3350da53dd914a7065e (diff)
downloadscummvm-rg350-3891c0fa39c35f84b6eea3ad5001125806160938.tar.gz
scummvm-rg350-3891c0fa39c35f84b6eea3ad5001125806160938.tar.bz2
scummvm-rg350-3891c0fa39c35f84b6eea3ad5001125806160938.zip
change loadVOCFromStream to take a reference instead of a pointer (to a stream)
svn-id: r16035
Diffstat (limited to 'simon')
-rw-r--r--simon/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index 56b14b8d00..d272dc14c6 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -181,7 +181,7 @@ void VocSound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) {
_file->seek(_offsets[sound], SEEK_SET);
int size, samples_per_sec;
- byte *buffer = loadVOCFromStream(_file, size, samples_per_sec);
+ byte *buffer = loadVOCFromStream(*_file, size, samples_per_sec);
_mixer->playRaw(handle, buffer, size, samples_per_sec, flags | SoundMixer::FLAG_AUTOFREE);
}