aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-02-01 20:35:51 +0000
committerJohannes Schickel2009-02-01 20:35:51 +0000
commit574a7924df26d9ebb072c6cd582442f4e29a5213 (patch)
tree46e423beb1400c0c220a96d259bc33d26134bd7d /engines/kyra/sound.cpp
parent90184e6812d25645c5e5c3218de8d2a2f77abe45 (diff)
downloadscummvm-rg350-574a7924df26d9ebb072c6cd582442f4e29a5213.tar.gz
scummvm-rg350-574a7924df26d9ebb072c6cd582442f4e29a5213.tar.bz2
scummvm-rg350-574a7924df26d9ebb072c6cd582442f4e29a5213.zip
Implemented per voice volume control. (Used for example in LoL intro)
svn-id: r36184
Diffstat (limited to 'engines/kyra/sound.cpp')
-rw-r--r--engines/kyra/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound.cpp b/engines/kyra/sound.cpp
index 487e0cfc07..197d2cd2dd 100644
--- a/engines/kyra/sound.cpp
+++ b/engines/kyra/sound.cpp
@@ -66,7 +66,7 @@ bool Sound::voiceFileIsPresent(const char *file) {
return false;
}
-int32 Sound::voicePlay(const char *file, bool isSfx) {
+int32 Sound::voicePlay(const char *file, uint8 volume, bool isSfx) {
char filenamebuffer[25];
int h = 0;
@@ -110,7 +110,7 @@ int32 Sound::voicePlay(const char *file, bool isSfx) {
}
_soundChannels[h].file = file;
- _mixer->playInputStream(isSfx ? Audio::Mixer::kSFXSoundType : Audio::Mixer::kSpeechSoundType, &_soundChannels[h].channelHandle, audioStream);
+ _mixer->playInputStream(isSfx ? Audio::Mixer::kSFXSoundType : Audio::Mixer::kSpeechSoundType, &_soundChannels[h].channelHandle, audioStream, -1, volume);
return audioStream->getTotalPlayTime();
}