diff options
author | Max Horn | 2010-01-19 11:22:14 +0000 |
---|---|---|
committer | Max Horn | 2010-01-19 11:22:14 +0000 |
commit | 5ee6c79b5d1bbdd2af6cd1471e6f4b82b988561a (patch) | |
tree | cb206a0853a2fab82f5d969393c3b4efa24d5ef5 /engines/cine | |
parent | d2dd5a569a4033a46b2e5cd99b0dc71897c8d9bc (diff) | |
download | scummvm-rg350-5ee6c79b5d1bbdd2af6cd1471e6f4b82b988561a.tar.gz scummvm-rg350-5ee6c79b5d1bbdd2af6cd1471e6f4b82b988561a.tar.bz2 scummvm-rg350-5ee6c79b5d1bbdd2af6cd1471e6f4b82b988561a.zip |
Convert more engines from Mixer::playRaw to Mixer::playInputStream
svn-id: r47377
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/sound.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp index 736241c3b1..ba98dd7865 100644 --- a/engines/cine/sound.cpp +++ b/engines/cine/sound.cpp @@ -32,6 +32,7 @@ #include "sound/audiostream.h" #include "sound/fmopl.h" +#include "sound/raw.h" #include "sound/mods/soundfx.h" namespace Cine { @@ -844,7 +845,8 @@ void PaulaSound::update() { void PaulaSound::playSoundChannel(int channel, int frequency, uint8 *data, int size, int volume) { assert(frequency > 0); frequency = PAULA_FREQ / frequency; - _mixer->playRaw(Audio::Mixer::kSFXSoundType, &_channelsTable[channel], data, size, DisposeAfterUse::YES, frequency, 0); + Audio::AudioStream *stream = Audio::makeRawMemoryStream(data, size, DisposeAfterUse::YES, frequency, 0); + _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_channelsTable[channel], stream); _mixer->setChannelVolume(_channelsTable[channel], volume * Audio::Mixer::kMaxChannelVolume / 63); } |