Implemented per voice volume control. (Used for example in LoL intro)

svn-id: r36184
This commit is contained in:
Johannes Schickel 2009-02-01 20:35:51 +00:00
parent 90184e6812
commit 574a7924df
5 changed files with 11 additions and 10 deletions

View file

@ -683,7 +683,7 @@ int TIMInterpreter::cmd_playVocFile(const uint16 *param) {
const int volume = (param[1] * 255) / 100;
if (index < ARRAYSIZE(_vocFiles) && !_vocFiles[index].empty())
_vm->sound()->voicePlay(_vocFiles[index].c_str()/*, volume*/, true);
_vm->sound()->voicePlay(_vocFiles[index].c_str(), volume, true);
else
_vm->snd_playSoundEffect(index, volume);