aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_talk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actions/action_talk.cpp')
-rw-r--r--engines/pink/objects/actions/action_talk.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/engines/pink/objects/actions/action_talk.cpp b/engines/pink/objects/actions/action_talk.cpp
index fad3f19ff9..1f55de1f42 100644
--- a/engines/pink/objects/actions/action_talk.cpp
+++ b/engines/pink/objects/actions/action_talk.cpp
@@ -30,46 +30,46 @@
namespace Pink {
void ActionTalk::deserialize(Archive &archive) {
- ActionLoop::deserialize(archive);
- _vox = archive.readString();
+ ActionLoop::deserialize(archive);
+ _vox = archive.readString();
}
void ActionTalk::toConsole() {
- debug("\tActionTalk: _name = %s, _fileName = %s, z = %u, _startFrame = %u,"
- " _endFrame = %d, _intro = %u, _style = %u, _vox = %s",
- _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _intro, _style, _vox.c_str());
+ debug("\tActionTalk: _name = %s, _fileName = %s, z = %u, _startFrame = %u,"
+ " _endFrame = %d, _intro = %u, _style = %u, _vox = %s",
+ _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame, _intro, _style, _vox.c_str());
}
void ActionTalk::onStart() {
- ActionPlay::onStart();
- _sound = _actor->getPage()->loadSound(_vox);
- _sound->play(Audio::Mixer::SoundType::kSpeechSoundType, 100, 0);
+ ActionPlay::onStart();
+ _sound = _actor->getPage()->loadSound(_vox);
+ _sound->play(Audio::Mixer::SoundType::kSpeechSoundType, 100, 0);
}
void ActionTalk::update() {
- ActionLoop::update();
- if (!_sound->isPlaying()) {
- _decoder->stop();
- _actor->endAction();
- }
+ ActionLoop::update();
+ if (!_sound->isPlaying()) {
+ _decoder->stop();
+ _actor->endAction();
+ }
}
void ActionTalk::end() {
- ActionPlay::end();
- delete _sound;
- _sound = nullptr;
+ ActionPlay::end();
+ delete _sound;
+ _sound = nullptr;
}
void ActionTalk::pause() {
- ActionCEL::pause();
- if (_sound)
- _sound->pause();
+ ActionCEL::pause();
+ if (_sound)
+ _sound->pause();
}
void ActionTalk::unpause() {
- ActionCEL::unpause();
- if (_sound)
- _sound->resume();
+ ActionCEL::unpause();
+ if (_sound)
+ _sound->resume();
}
} // End of namespace Pink