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/sword2 | |
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/sword2')
-rw-r--r-- | engines/sword2/animation.cpp | 10 | ||||
-rw-r--r-- | engines/sword2/animation.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp index c2d92a6b29..57b6235b0a 100644 --- a/engines/sword2/animation.cpp +++ b/engines/sword2/animation.cpp @@ -158,7 +158,7 @@ void MoviePlayer::play(MovieText *movieTexts, uint32 numMovieTexts, uint32 leadI stopEvent.kbd = Common::KEYCODE_ESCAPE; stopEvents.push_back(stopEvent); - terminated = !playVideo(&stopEvents); + terminated = !playVideo(stopEvents); closeTextObject(_currentMovieText); @@ -291,11 +291,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; @@ -323,7 +323,7 @@ MoviePlayer *makeMoviePlayer(const char *name, Sword2Engine *vm, Audio::Mixer *s snprintf(filename, sizeof(filename), "%s.smk", name); if (Common::File::exists(filename)) { - Graphics::SMKPlayer *smkDecoder = new Graphics::SMKPlayer(snd); + Graphics::SmackerDecoder *smkDecoder = new Graphics::SmackerDecoder(snd); return new MoviePlayer(vm, snd, system, bgSoundHandle, smkDecoder, kVideoDecoderSMK); } @@ -331,7 +331,7 @@ MoviePlayer *makeMoviePlayer(const char *name, Sword2Engine *vm, Audio::Mixer *s if (Common::File::exists(filename)) { #ifdef USE_ZLIB - DXAPlayerWithSound *dxaDecoder = new DXAPlayerWithSound(snd, bgSoundHandle); + DXADecoderWithSound *dxaDecoder = new DXADecoderWithSound(snd, bgSoundHandle); return new MoviePlayer(vm, 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/sword2/animation.h b/engines/sword2/animation.h index dde1b75a8c..cfb1ecf1b1 100644 --- a/engines/sword2/animation.h +++ b/engines/sword2/animation.h @@ -64,10 +64,10 @@ struct MovieInfo { bool seamless; }; -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: |