From f002e06fe058c4c0fe11d44fc844f88ff90a389a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 27 Jan 2009 03:21:05 +0000 Subject: Add looping support to makeVOCStream(). svn-id: r36093 --- engines/agos/sound.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'engines/agos') 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) { -- cgit v1.2.3