aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/smush/smush_mixer.cpp
diff options
context:
space:
mode:
authorMax Horn2010-01-08 22:10:19 +0000
committerMax Horn2010-01-08 22:10:19 +0000
commitc4892593538887d36858cbba609dbe34a4b60792 (patch)
treee4706acc9612b33677a1ab6ef03e3769ad12f347 /engines/scumm/smush/smush_mixer.cpp
parentf720d99b0a4fdc97d4d5c01b8c4db43c318c62b1 (diff)
downloadscummvm-rg350-c4892593538887d36858cbba609dbe34a4b60792.tar.gz
scummvm-rg350-c4892593538887d36858cbba609dbe34a4b60792.tar.bz2
scummvm-rg350-c4892593538887d36858cbba609dbe34a4b60792.zip
Switch SCUMM from AppendableAudioStream to QueuingAudioStream
svn-id: r47183
Diffstat (limited to 'engines/scumm/smush/smush_mixer.cpp')
-rw-r--r--engines/scumm/smush/smush_mixer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/smush/smush_mixer.cpp b/engines/scumm/smush/smush_mixer.cpp
index 0a0cda5b76..c069f6fe1b 100644
--- a/engines/scumm/smush/smush_mixer.cpp
+++ b/engines/scumm/smush/smush_mixer.cpp
@@ -122,12 +122,12 @@ bool SmushMixer::handleFrame() {
if (_mixer->isReady()) {
// Stream the data
if (!_channels[i].stream) {
- _channels[i].stream = Audio::makeAppendableAudioStream(_channels[i].chan->getRate(), flags);
+ _channels[i].stream = Audio::makeQueuingAudioStream(_channels[i].chan->getRate(), stereo);
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_channels[i].handle, _channels[i].stream);
}
_mixer->setChannelVolume(_channels[i].handle, vol);
_mixer->setChannelBalance(_channels[i].handle, pan);
- _channels[i].stream->queueBuffer(data, size); // The stream will free the buffer for us
+ _channels[i].stream->queueBuffer(data, size, flags); // The stream will free the buffer for us
} else
delete[] data;
}