diff options
author | Torbjörn Andersson | 2006-05-18 21:46:07 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-18 21:46:07 +0000 |
commit | 2531fd58737b1e02b32f496ac891e5a96bf95828 (patch) | |
tree | 4b05196eebcff9bd67618bc809d98dee18db1b0a /engines/scumm/smush | |
parent | 4ead8dff26c85f76ffcb46e35f8ed8684664713a (diff) | |
download | scummvm-rg350-2531fd58737b1e02b32f496ac891e5a96bf95828.tar.gz scummvm-rg350-2531fd58737b1e02b32f496ac891e5a96bf95828.tar.bz2 scummvm-rg350-2531fd58737b1e02b32f496ac891e5a96bf95828.zip |
Added player for the Kyra 3 VQA cutscenes, based on my earlier prototype. It
could use some cleanup, and there are a couple of TODOs sprinkled throughout
the code, but it seems to work reasonably well. Until the Kyra 3 main menu is
implemented, it won't actually be used though.
It uses the appendable audio stream class, which I have moved out of the SCUMM
engine.
svn-id: r22526
Diffstat (limited to 'engines/scumm/smush')
-rw-r--r-- | engines/scumm/smush/smush_mixer.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/smush/smush_mixer.h | 2 | ||||
-rw-r--r-- | engines/scumm/smush/smush_player.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/smush/smush_player.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/smush/smush_mixer.cpp b/engines/scumm/smush/smush_mixer.cpp index a7b8fb9b27..b5002609df 100644 --- a/engines/scumm/smush/smush_mixer.cpp +++ b/engines/scumm/smush/smush_mixer.cpp @@ -129,7 +129,7 @@ bool SmushMixer::handleFrame() { if (_mixer->isReady()) { if (!_channels[i].stream) { - _channels[i].stream = makeAppendableAudioStream(rate, flags, 500000); + _channels[i].stream = Audio::makeAppendableAudioStream(rate, flags, 500000); _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_channels[i].handle, _channels[i].stream); } _mixer->setChannelVolume(_channels[i].handle, vol); diff --git a/engines/scumm/smush/smush_mixer.h b/engines/scumm/smush/smush_mixer.h index 82b233873d..05e33b6a8f 100644 --- a/engines/scumm/smush/smush_mixer.h +++ b/engines/scumm/smush/smush_mixer.h @@ -41,7 +41,7 @@ private: int id; SmushChannel *chan; Audio::SoundHandle handle; - AppendableAudioStream *stream; + Audio::AppendableAudioStream *stream; } _channels[NUM_CHANNELS]; int _soundFrequency; diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp index 9edf776989..76dc32284b 100644 --- a/engines/scumm/smush/smush_player.cpp +++ b/engines/scumm/smush/smush_player.cpp @@ -522,7 +522,7 @@ void SmushPlayer::handleIACT(Chunk &b) { } while (--count); if (!_IACTstream) { - _IACTstream = makeAppendableAudioStream(22050, Audio::Mixer::FLAG_STEREO | Audio::Mixer::FLAG_16BITS, 400000); + _IACTstream = Audio::makeAppendableAudioStream(22050, Audio::Mixer::FLAG_STEREO | Audio::Mixer::FLAG_16BITS, 400000); _vm->_mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_IACTchannel, _IACTstream); } _IACTstream->append(output_data, 0x1000); diff --git a/engines/scumm/smush/smush_player.h b/engines/scumm/smush/smush_player.h index 929f9d73d2..05dd5c362a 100644 --- a/engines/scumm/smush/smush_player.h +++ b/engines/scumm/smush/smush_player.h @@ -62,7 +62,7 @@ private: int32 _frame; Audio::SoundHandle _IACTchannel; - AppendableAudioStream *_IACTstream; + Audio::AppendableAudioStream *_IACTstream; Audio::SoundHandle _compressedFileSoundHandle; bool _compressedFileMode; |