mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-03 07:59:38 +00:00
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:
parent
126a8b91ca
commit
ddc104d4ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user