dsound: Use the value from SetVolume when 3D processing is disabled.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andrew Eikum 2016-12-28 14:03:25 -06:00 committed by Alexandre Julliard
parent 1671a83f55
commit d961f5ac7e
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
default:
TRACE("3D processing disabled\n");
/* this one is here only to eliminate annoying warning message */
dsb->volpan.lVolume = dsb->ds3db_lVolume;
DSOUND_RecalcVolPan (&dsb->volpan);
return;
}