diff options
| author | Max Horn | 2010-01-08 22:05:12 +0000 |
|---|---|---|
| committer | Max Horn | 2010-01-08 22:05:12 +0000 |
| commit | 7efba850648777d2d562bfccf2f14868816d6391 (patch) | |
| tree | 5feb2d3593335133b72bebee12acbcb426a7d886 /engines/made | |
| parent | 95726dfe50eae85d0e7675f8891339fb0abb43fd (diff) | |
| download | scummvm-rg350-7efba850648777d2d562bfccf2f14868816d6391.tar.gz scummvm-rg350-7efba850648777d2d562bfccf2f14868816d6391.tar.bz2 scummvm-rg350-7efba850648777d2d562bfccf2f14868816d6391.zip | |
Switch Tinsel, MADE and some of the video players to QueuedAudioStream
svn-id: r47178
Diffstat (limited to 'engines/made')
| -rw-r--r-- | engines/made/pmvplayer.cpp | 4 | ||||
| -rw-r--r-- | engines/made/pmvplayer.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/made/pmvplayer.cpp b/engines/made/pmvplayer.cpp index ee41fe3cda..c0dad218c0 100644 --- a/engines/made/pmvplayer.cpp +++ b/engines/made/pmvplayer.cpp @@ -102,7 +102,7 @@ bool PmvPlayer::play(const char *filename) { // TODO: Sound can still be a little choppy. A bug in the decoder or - // perhaps more likely - do we have to implement double buffering to // get it to work well? - _audioStream = Audio::makeAppendableAudioStream(soundFreq, Audio::Mixer::FLAG_UNSIGNED); + _audioStream = Audio::makeQueuedAudioStream(soundFreq, false); while (!_vm->shouldQuit() && !_aborted && !_fd->eos() && frameNumber < frameCount) { @@ -140,7 +140,7 @@ bool PmvPlayer::play(const char *filename) { soundSize = chunkCount * chunkSize; soundData = new byte[soundSize]; decompressSound(audioData + 8, soundData, chunkSize, chunkCount); - _audioStream->queueBuffer(soundData, soundSize); + _audioStream->queueBuffer(soundData, soundSize, Audio::Mixer::FLAG_UNSIGNED); } // Handle palette diff --git a/engines/made/pmvplayer.h b/engines/made/pmvplayer.h index e20aff12e1..bfdda4fa2e 100644 --- a/engines/made/pmvplayer.h +++ b/engines/made/pmvplayer.h @@ -50,7 +50,7 @@ protected: MadeEngine *_vm; Audio::Mixer *_mixer; Common::File *_fd; - Audio::AppendableAudioStream *_audioStream; + Audio::QueuedAudioStream *_audioStream; Audio::SoundHandle _audioStreamHandle; byte _paletteRGB[768]; Graphics::Surface *_surface; |
