diff options
author | Peter Kohaut | 2018-03-06 00:07:42 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-03-06 00:29:20 +0100 |
commit | e232f13f5dd7c9119d0355cb93ff1cc2c705d16e (patch) | |
tree | ccf3189fd328d8535eb44218da6fc30b26475611 /engines/bladerunner/audio_speech.cpp | |
parent | 225cad379f2af109c84220ddb998035551ee29b2 (diff) | |
download | scummvm-rg350-e232f13f5dd7c9119d0355cb93ff1cc2c705d16e.tar.gz scummvm-rg350-e232f13f5dd7c9119d0355cb93ff1cc2c705d16e.tar.bz2 scummvm-rg350-e232f13f5dd7c9119d0355cb93ff1cc2c705d16e.zip |
BLADERUNNER: Added Zuben actor
Fixed animation position update
Added goal & anim commands to console
Diffstat (limited to 'engines/bladerunner/audio_speech.cpp')
-rw-r--r-- | engines/bladerunner/audio_speech.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/bladerunner/audio_speech.cpp b/engines/bladerunner/audio_speech.cpp index 1f3465c7eb..69883cbce2 100644 --- a/engines/bladerunner/audio_speech.cpp +++ b/engines/bladerunner/audio_speech.cpp @@ -25,9 +25,11 @@ #include "bladerunner/actor.h" #include "bladerunner/aud_stream.h" #include "bladerunner/audio_mixer.h" +#include "bladerunner/audio_player.h" #include "bladerunner/bladerunner.h" #include "common/debug.h" +#include "common/str.h" namespace BladeRunner { @@ -113,6 +115,12 @@ bool AudioSpeech::isPlaying() const { return _isActive; } +bool AudioSpeech::playSpeechLine(int actorId, int sentenceId, int volume, int a4, int priority) { + int balance = _vm->_actors[actorId]->soundBalance(); + Common::String name = Common::String::format("%02d-%04d%s.AUD", actorId, sentenceId, _vm->_languageCode); + return _vm->_audioPlayer->playAud(name, _speechVolume * volume / 100, balance, balance, priority, kAudioPlayerOverrideVolume); +} + void AudioSpeech::setVolume(int volume) { _speechVolume = volume; } |