dsound: Fix division by zero in DSOUND_Calc3DBuffer.
This commit is contained in:
parent
2b8a1815e6
commit
a6ab4c51cf
|
@ -238,6 +238,9 @@ void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb)
|
|||
/* my test show that for my way of calc., we need only half of angles */
|
||||
DWORD dwInsideConeAngle = dsb->ds3db_ds3db.dwInsideConeAngle/2;
|
||||
DWORD dwOutsideConeAngle = dsb->ds3db_ds3db.dwOutsideConeAngle/2;
|
||||
if (dwOutsideConeAngle == dwInsideConeAngle)
|
||||
++dwOutsideConeAngle;
|
||||
|
||||
/* full volume */
|
||||
if (flAngle < dwInsideConeAngle)
|
||||
flAngle = dwInsideConeAngle;
|
||||
|
|
Loading…
Reference in New Issue