diff options
Diffstat (limited to 'engines/m4')
-rw-r--r-- | engines/m4/sound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |