forked from Mirrors/wine-wine
dsound: Correct field access.
parent
8de6b7da40
commit
684a121aed
|
@ -272,13 +272,13 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
|
||||||
/* FIXME: Doppler Effect disabled since i have no idea which frequency to change and how to do it */
|
/* FIXME: Doppler Effect disabled since i have no idea which frequency to change and how to do it */
|
||||||
#if 0
|
#if 0
|
||||||
/* doppler shift*/
|
/* doppler shift*/
|
||||||
if ((VectorMagnitude(&ds3db.vVelocity) == 0) && (VectorMagnitude(&dsb->device->ds3dl.vVelocity) == 0))
|
if ((VectorMagnitude(&ds3db_ds3db.vVelocity) == 0) && (VectorMagnitude(&dsb->device->ds3dl.vVelocity) == 0))
|
||||||
{
|
{
|
||||||
TRACE("doppler: Buffer and Listener don't have velocities\n");
|
TRACE("doppler: Buffer and Listener don't have velocities\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* calculate length of ds3db.vVelocity component which causes Doppler Effect
|
/* calculate length of ds3db_ds3db.vVelocity component which causes Doppler Effect
|
||||||
NOTE: if buffer moves TOWARDS the listener, it's velocity component is NEGATIVE
|
NOTE: if buffer moves TOWARDS the listener, it's velocity component is NEGATIVE
|
||||||
if buffer moves AWAY from listener, it's velocity component is POSITIVE */
|
if buffer moves AWAY from listener, it's velocity component is POSITIVE */
|
||||||
flBufferVel = ProjectVector(&dsb->ds3db_ds3db.vVelocity, &vDistance);
|
flBufferVel = ProjectVector(&dsb->ds3db_ds3db.vVelocity, &vDistance);
|
||||||
|
|
Loading…
Reference in New Issue