diff options
author | Travis Howell | 2009-01-27 03:21:05 +0000 |
---|---|---|
committer | Travis Howell | 2009-01-27 03:21:05 +0000 |
commit | f002e06fe058c4c0fe11d44fc844f88ff90a389a (patch) | |
tree | c709be9147cc87b2ac26fba52de8ecc0484d4a6a /engines/agos | |
parent | 82a741419728a7c908ee31709051e9a0de0daa10 (diff) | |
download | scummvm-rg350-f002e06fe058c4c0fe11d44fc844f88ff90a389a.tar.gz scummvm-rg350-f002e06fe058c4c0fe11d44fc844f88ff90a389a.tar.bz2 scummvm-rg350-f002e06fe058c4c0fe11d44fc844f88ff90a389a.zip |
Add looping support to makeVOCStream().
svn-id: r36093
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/sound.cpp | 7 |
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) { |