diff options
author | Max Horn | 2009-03-09 03:45:23 +0000 |
---|---|---|
committer | Max Horn | 2009-03-09 03:45:23 +0000 |
commit | e080a593378bcaf44a7b44c297dcb291a2b584a8 (patch) | |
tree | 6a565b0e712d7f6a8b2d8151d9701d17d9922f63 /engines/sword1 | |
parent | 93240b003adb08d83703b03e192bd5905aa61884 (diff) | |
download | scummvm-rg350-e080a593378bcaf44a7b44c297dcb291a2b584a8.tar.gz scummvm-rg350-e080a593378bcaf44a7b44c297dcb291a2b584a8.tar.bz2 scummvm-rg350-e080a593378bcaf44a7b44c297dcb291a2b584a8.zip |
Renamed SMKPlayer -> SmackerDecoder and DXAPlayer -> DXADecoder, as well as some other tweaks
svn-id: r39255
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/animation.cpp | 10 | ||||
-rw-r--r-- | engines/sword1/animation.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp index 2b4a596f9a..032eb15fb9 100644 --- a/engines/sword1/animation.cpp +++ b/engines/sword1/animation.cpp @@ -168,7 +168,7 @@ void MoviePlayer::play(void) { stopEvent.kbd = Common::KEYCODE_ESCAPE; stopEvents.push_back(stopEvent); - terminated = !playVideo(&stopEvents); + terminated = !playVideo(stopEvents); if (terminated) _snd->stopHandle(*_bgSoundHandle); @@ -229,11 +229,11 @@ void MoviePlayer::performPostProcessing(byte *screen) { } } -DXAPlayerWithSound::DXAPlayerWithSound(Audio::Mixer *mixer, Audio::SoundHandle *bgSoundHandle) +DXADecoderWithSound::DXADecoderWithSound(Audio::Mixer *mixer, Audio::SoundHandle *bgSoundHandle) : _mixer(mixer), _bgSoundHandle(bgSoundHandle) { } -int32 DXAPlayerWithSound::getAudioLag() { +int32 DXADecoderWithSound::getAudioLag() { if (!_fileStream) return 0; @@ -261,7 +261,7 @@ MoviePlayer *makeMoviePlayer(uint32 id, SwordEngine *vm, Text *textMan, Audio::M snprintf(filename, sizeof(filename), "%s.smk", sequenceList[id]); if (Common::File::exists(filename)) { - Graphics::SMKPlayer *smkDecoder = new Graphics::SMKPlayer(snd); + Graphics::SmackerDecoder *smkDecoder = new Graphics::SmackerDecoder(snd); return new MoviePlayer(vm, textMan, snd, system, bgSoundHandle, smkDecoder, kVideoDecoderSMK); } @@ -269,7 +269,7 @@ MoviePlayer *makeMoviePlayer(uint32 id, SwordEngine *vm, Text *textMan, Audio::M if (Common::File::exists(filename)) { #ifdef USE_ZLIB - DXAPlayerWithSound *dxaDecoder = new DXAPlayerWithSound(snd, bgSoundHandle); + DXADecoderWithSound *dxaDecoder = new DXADecoderWithSound(snd, bgSoundHandle); return new MoviePlayer(vm, textMan, snd, system, bgSoundHandle, dxaDecoder, kVideoDecoderDXA); #else GUI::MessageDialog dialog("DXA cutscenes found but ScummVM has been built without zlib support", "OK"); diff --git a/engines/sword1/animation.h b/engines/sword1/animation.h index a221221546..85c9fc70d6 100644 --- a/engines/sword1/animation.h +++ b/engines/sword1/animation.h @@ -56,10 +56,10 @@ public: } }; -class DXAPlayerWithSound : public Graphics::DXAPlayer { +class DXADecoderWithSound : public Graphics::DXADecoder { public: - DXAPlayerWithSound(Audio::Mixer *mixer, Audio::SoundHandle *bgSoundHandle); - ~DXAPlayerWithSound() {} + DXADecoderWithSound(Audio::Mixer *mixer, Audio::SoundHandle *bgSoundHandle); + ~DXADecoderWithSound() {} int32 getAudioLag(); private: |