From a505d32eff97e31ac73495e202f9c01f6490dcf8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 30 Jan 2010 15:26:54 +0000 Subject: Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream. svn-id: r47716 --- engines/m4/sound.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/m4') diff --git a/engines/m4/sound.cpp b/engines/m4/sound.cpp index 63956259b3..37fe36cf2b 100644 --- a/engines/m4/sound.cpp +++ b/engines/m4/sound.cpp @@ -94,7 +94,7 @@ void Sound::playSound(const char *soundName, int volume, bool loop, int channel) // Sound format is 8bit mono, unsigned, 11025kHz Audio::AudioStream *stream = Audio::makeLoopingAudioStream( - Audio::makeRawMemoryStream(buffer, bufferSize, 11025, Audio::FLAG_UNSIGNED), + Audio::makeRawStream(buffer, bufferSize, 11025, Audio::FLAG_UNSIGNED), loop ? 0 : 1); _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &handle->handle, stream, -1, volume); } @@ -146,7 +146,7 @@ void Sound::playVoice(const char *soundName, int volume) { _vm->res()->toss(soundName); // Voice format is 8bit mono, unsigned, 11025kHz - Audio::AudioStream *stream = Audio::makeRawMemoryStream(buffer, soundStream->size(), 11025, Audio::FLAG_UNSIGNED); + Audio::AudioStream *stream = Audio::makeRawStream(buffer, soundStream->size(), 11025, Audio::FLAG_UNSIGNED); _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &handle->handle, stream, -1, volume); } @@ -259,7 +259,7 @@ void Sound::playDSRSound(int soundIndex, int volume, bool loop) { // Play sound Audio::AudioStream *stream = Audio::makeLoopingAudioStream( - Audio::makeRawMemoryStream(buffer, + Audio::makeRawStream(buffer, _dsrFile.dsrEntries[soundIndex]->uncompSize, _dsrFile.dsrEntries[soundIndex]->frequency, Audio::FLAG_UNSIGNED), loop ? 0 : 1); -- cgit v1.2.3