mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Fix sound pitch shifting
This commit is contained in:
parent
bda7eb58f2
commit
721ab04da1
1 changed files with 2 additions and 2 deletions
|
@ -1030,7 +1030,7 @@ short PlayFX2(unsigned short nSound, short nSprite)
|
||||||
short v4 = nSound & 0x2000;
|
short v4 = nSound & 0x2000;
|
||||||
short v8 = nSound & 0x1000;
|
short v8 = nSound & 0x1000;
|
||||||
short v14 = nSound & 0x4000;
|
short v14 = nSound & 0x4000;
|
||||||
short v10 = (nSound&0xe000)>>9;
|
short v10 = (nSound&0xe00)>>9;
|
||||||
int v2c = 0x7fffffff;
|
int v2c = 0x7fffffff;
|
||||||
ActiveSound* v38 = NULL;
|
ActiveSound* v38 = NULL;
|
||||||
ActiveSound* v28 = NULL;
|
ActiveSound* v28 = NULL;
|
||||||
|
@ -1096,7 +1096,7 @@ short PlayFX2(unsigned short nSound, short nSprite)
|
||||||
|
|
||||||
int nPitch;
|
int nPitch;
|
||||||
if (v10)
|
if (v10)
|
||||||
nPitch = -(totalmoves&((1<<v10)-1));
|
nPitch = -(totalmoves&((1<<v10)-1))*16;
|
||||||
else
|
else
|
||||||
nPitch = 0;
|
nPitch = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue