EMI: Respect balance and volume parameters when starting a voice.

This commit is contained in:
Joni Vähämäki 2014-07-18 15:52:28 +03:00
parent f733939a38
commit e70d6e9af1

View File

@ -114,6 +114,8 @@ bool EMISound::startVoice(const char *soundName, int volume, int pan) {
_channels[channel] = new VimaTrack(soundName);
if (_channels[channel]->openSound(soundName, soundName)) {
_channels[channel]->setBalance(pan);
_channels[channel]->setVolume(volume);
_channels[channel]->play();
return true;
}