From b227c660c6f0491a409a35bbb317f8558258e338 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 19 Jan 2010 11:20:58 +0000 Subject: Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream svn-id: r47375 --- engines/draci/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/draci') diff --git a/engines/draci/sound.cpp b/engines/draci/sound.cpp index d593437cf6..4617cd5c6f 100644 --- a/engines/draci/sound.cpp +++ b/engines/draci/sound.cpp @@ -35,6 +35,7 @@ #include "sound/audiostream.h" #include "sound/mixer.h" +#include "sound/raw.h" namespace Draci { @@ -203,8 +204,8 @@ void Sound::playSoundBuffer(Audio::SoundHandle *handle, const SoundSample &buffe Audio::Mixer::kSpeechSoundType : Audio::Mixer::kSFXSoundType; // Don't use DisposeAfterUse::YES, because our caching system deletes samples by itself. - _mixer->playRaw(soundType, handle, buffer._data, - buffer._length, DisposeAfterUse::NO, buffer._frequency, flags, -1, volume); + Audio::AudioStream *stream = Audio::makeRawMemoryStream(buffer._data, buffer._length, DisposeAfterUse::NO, buffer._frequency, flags, 0, 0); + _mixer->playInputStream(soundType, handle, stream, -1, volume); } void Sound::playSound(const SoundSample *buffer, int volume, bool loop) { -- cgit v1.2.3