Skip to content

Commit

Permalink
Fixed windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Jan 31, 2025
1 parent 7ae083a commit 2500008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/factories/sf64/audio/AudioDecompressor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "endianness.h"
#include "AudioDecompressor.h"

#define C_M_PI 3.14159265358979323846f

struct StupidDMAStruct {
int16_t* unk_0;
int32_t unk_4;
Expand Down Expand Up @@ -374,7 +376,7 @@ void AudioSynth_InverseDiscreteCosineTransform(float* buffer0, float* buffer1, i
buf2half2 = &buffer2[half];
buf2half3 = &buf2half2[half];
var_fs0 = 0.0f;
temp_ft0 = M_PI / (float) (2 * size);
temp_ft0 = C_M_PI / (float) (2 * size);
for (i = 0; i < half; i++) {
*buf2half2++ = (cosf(var_fs0) - sinf(var_fs0)) * 0.707107f;
*buf2half3++ = (cosf(var_fs0) + sinf(var_fs0)) * 0.707107f;
Expand Down

0 comments on commit 2500008

Please sign in to comment.