aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/vdx.cpp
diff options
context:
space:
mode:
authorMax Horn2010-01-09 00:19:13 +0000
committerMax Horn2010-01-09 00:19:13 +0000
commitbe8371fb07936f27934909c4c0eb5184547a2656 (patch)
tree9edc668e3306f3ae87a8b9ed3a4a26a05eea0bdc /engines/groovie/vdx.cpp
parent41eaeaa61d968442bf2055d07e30b0dd4d31d606 (diff)
downloadscummvm-rg350-be8371fb07936f27934909c4c0eb5184547a2656.tar.gz
scummvm-rg350-be8371fb07936f27934909c4c0eb5184547a2656.tar.bz2
scummvm-rg350-be8371fb07936f27934909c4c0eb5184547a2656.zip
Replace AppendableAudioStream by QueuingAudioStream
svn-id: r47189
Diffstat (limited to 'engines/groovie/vdx.cpp')
-rw-r--r--engines/groovie/vdx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/groovie/vdx.cpp b/engines/groovie/vdx.cpp
index 0c754473fe..e2764defa6 100644
--- a/engines/groovie/vdx.cpp
+++ b/engines/groovie/vdx.cpp
@@ -498,7 +498,7 @@ void VDXPlayer::decodeBlockDelta(uint32 offset, byte *colours, uint16 imageWidth
void VDXPlayer::chunkSound(Common::ReadStream *in) {
if (!_audioStream) {
- _audioStream = Audio::makeAppendableAudioStream(22050, Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_AUTOFREE);
+ _audioStream = Audio::makeQueuingAudioStream(22050, false);
Audio::SoundHandle sound_handle;
g_system->getMixer()->playInputStream(Audio::Mixer::kPlainSoundType, &sound_handle, _audioStream);
}
@@ -506,7 +506,7 @@ void VDXPlayer::chunkSound(Common::ReadStream *in) {
byte *data = new byte[60000];
int chunksize = in->read(data, 60000);
if (!Common::isDebugChannelEnabled(kGroovieDebugFast)) {
- _audioStream->queueBuffer(data, chunksize);
+ _audioStream->queueBuffer(data, chunksize, Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_AUTOFREE);
}
}