aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/sound.cpp')
-rw-r--r--engines/agos/sound.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp
index 3aa3bd1865..dc8d6d8fc2 100644
--- a/engines/agos/sound.cpp
+++ b/engines/agos/sound.cpp
@@ -261,11 +261,8 @@ void VocSound::playSound(uint sound, uint loopSound, Audio::Mixer::SoundType typ
_file->seek(_offsets[sound], SEEK_SET);
- int size, rate;
- byte *buffer = Audio::loadVOCFromStream(*_file, size, rate);
- // TODO: Use makeVOCStream
- assert(buffer);
- _mixer->playRaw(type, handle, buffer, size, rate, flags | Audio::Mixer::FLAG_AUTOFREE);
+ Audio::AudioStream *stream = Audio::makeVOCStream(*_file, flags);
+ _mixer->playInputStream(type, handle, stream);
}
void RawSound::playSound(uint sound, uint loopSound, Audio::Mixer::SoundType type, Audio::SoundHandle *handle, byte flags, int vol) {