diff options
author | Max Horn | 2010-01-19 11:20:58 +0000 |
---|---|---|
committer | Max Horn | 2010-01-19 11:20:58 +0000 |
commit | b227c660c6f0491a409a35bbb317f8558258e338 (patch) | |
tree | 23a14b43286f1ce8d2b92550284d9cd0a785b896 /engines/draci | |
parent | f0a0ed8f9e01d3943f635b92af6f71ca83814f13 (diff) | |
download | scummvm-rg350-b227c660c6f0491a409a35bbb317f8558258e338.tar.gz scummvm-rg350-b227c660c6f0491a409a35bbb317f8558258e338.tar.bz2 scummvm-rg350-b227c660c6f0491a409a35bbb317f8558258e338.zip |
Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream
svn-id: r47375
Diffstat (limited to 'engines/draci')
-rw-r--r-- | engines/draci/sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |