Use the same volume and panning values when starting the sound as when

adjusting these values later. I don't know about the volume thing, but I've
noticed that new sounds would often play their first fraction of a second
in the right speaker only. This change should fix that.

svn-id: r13896
This commit is contained in:
Torbjörn Andersson 2004-05-28 14:42:49 +00:00
parent 126a8b91ca
commit ddc104d4ef

View File

@ -202,7 +202,7 @@ void IMuseDigital::callback() {
if (track->stream2) {
if (!track->started) {
track->started = true;
_vm->_mixer->playInputStream(&track->handle, track->stream2, false, track->vol / 1000, track->pan, -1, false);
_vm->_mixer->playInputStream(&track->handle, track->stream2, false, vol, pan, -1, false);
} else {
_vm->_mixer->setChannelVolume(track->handle, vol);
_vm->_mixer->setChannelBalance(track->handle, pan);