aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorMax Horn2010-03-08 10:27:42 +0000
committerMax Horn2010-03-08 10:27:42 +0000
commitf24cc1c8be08448c8412afef29be3ffa4ff09dd5 (patch)
tree28c0d14608cae4af3685afb41da2e7651b77a20e /engines/agos
parent50116130efedc66ec8261df6080fb7ca6fe079f7 (diff)
downloadscummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.tar.gz
scummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.tar.bz2
scummvm-rg350-f24cc1c8be08448c8412afef29be3ffa4ff09dd5.zip
Tweak makeVOCDiskStream
* now takes a SeekableReadStream *pointer* like (almost) all other audiostream factories * fix potential memory leak in it * rename takeOwnershipOfStream to disposeAfterUse for consistency svn-id: r48184
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp
index 06ba6246e5..84b0eebe69 100644
--- a/engines/agos/sound.cpp
+++ b/engines/agos/sound.cpp
@@ -260,7 +260,7 @@ public:
Audio::AudioStream *VocSound::makeAudioStream(uint sound) {
assert(_offsets);
_file->seek(_offsets[sound], SEEK_SET);
- return Audio::makeVOCStream(*_file, _flags);
+ return Audio::makeVOCStream(_file, _flags);
}
void VocSound::playSound(uint sound, uint loopSound, Audio::Mixer::SoundType type, Audio::SoundHandle *handle, bool loop, int vol) {