mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Core: Use Math namespace for constants
This commit is contained in:
parent
06c71fbf40
commit
94282d88f9
181 changed files with 812 additions and 818 deletions
|
|
@ -71,7 +71,7 @@ static void smbFft(float *fftBuffer, long fftFrameSize, long sign)
|
|||
le2 = le >> 1;
|
||||
ur = 1.0;
|
||||
ui = 0.0;
|
||||
arg = Math_PI / (le2 >> 1);
|
||||
arg = Math::PI / (le2 >> 1);
|
||||
wr = cos(arg);
|
||||
wi = sign * sin(arg);
|
||||
for (j = 0; j < le2; j += 2) {
|
||||
|
|
@ -110,7 +110,7 @@ void AudioEffectSpectrumAnalyzerInstance::process(const AudioFrame *p_src_frames
|
|||
while (p_frame_count) {
|
||||
int to_fill = fft_size * 2 - temporal_fft_pos;
|
||||
to_fill = MIN(to_fill, p_frame_count);
|
||||
const double to_fill_step = Math_TAU / (double)fft_size;
|
||||
const double to_fill_step = Math::TAU / (double)fft_size;
|
||||
|
||||
float *fftw = temporal_fft.ptrw();
|
||||
for (int i = 0; i < to_fill; i++) { //left and right buffers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue