mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Next time I'll test with sound enabled when attempting to fix a warning in audiolib ;)
git-svn-id: https://svn.eduke32.com/eduke32@4616 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ed703142af
commit
f8b340de02
1 changed files with 10 additions and 11 deletions
|
@ -50,19 +50,18 @@ void PITCH_Init(void)
|
|||
int32_t note;
|
||||
int32_t detune;
|
||||
|
||||
if (!PITCH_Installed)
|
||||
{
|
||||
for (note = 0; note < 12; note++)
|
||||
{
|
||||
for (detune = 0; detune < MAXDETUNE; detune++)
|
||||
{
|
||||
PitchTable[ note ][ detune ] = 0x10000 *
|
||||
(uint32_t)pow(2, (note * MAXDETUNE + detune) / (12.0 * MAXDETUNE));
|
||||
}
|
||||
}
|
||||
if (PITCH_Installed)
|
||||
return;
|
||||
|
||||
PITCH_Installed = 1;
|
||||
for (note = 0; note < 12; note++)
|
||||
{
|
||||
for (detune = 0; detune < MAXDETUNE; detune++)
|
||||
{
|
||||
PitchTable[note][detune] = (uint32_t) (65535.f * powf(2.f, (note * MAXDETUNE + detune) / (12.f * MAXDETUNE)));
|
||||
}
|
||||
}
|
||||
|
||||
PITCH_Installed = 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue