mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Fix freeze on pitch 0 sound playback introduced in r4616.
Reported in http://forums.duke4.net/topic/3857-the-crash-thread/page__view__findpost__p__220954 Now, PitchTable[] in initialized with the same values as pre-r4608. git-svn-id: https://svn.eduke32.com/eduke32@5131 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ab2d73ce3d
commit
25402be9f2
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ void PITCH_Init(void)
|
||||||
{
|
{
|
||||||
for (detune = 0; detune < MAXDETUNE; detune++)
|
for (detune = 0; detune < MAXDETUNE; detune++)
|
||||||
{
|
{
|
||||||
PitchTable[note][detune] = (uint32_t) (65535.f * powf(2.f, (note * MAXDETUNE + detune) / (12.f * MAXDETUNE)));
|
PitchTable[note][detune] = (uint32_t) (65536.f * powf(2.f, (note * MAXDETUNE + detune) / (12.f * MAXDETUNE)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue