summaryrefslogtreecommitdiff
path: root/servers/audio
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-04-27 12:22:47 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-04-27 12:23:05 -0300
commitaf9bb0ea15dfd3dfe8950fcfcce364485dadd92a (patch)
tree2005fc12ae91fa16fca6f14276a1c31b08c8786d /servers/audio
parente5ed112d69fb0a4118b8b40de4d3851cac845445 (diff)
Clean up latency related functions
Diffstat (limited to 'servers/audio')
-rw-r--r--servers/audio/effects/audio_effect_spectrum_analyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_spectrum_analyzer.cpp b/servers/audio/effects/audio_effect_spectrum_analyzer.cpp
index 01a52aa01f..46d92336f3 100644
--- a/servers/audio/effects/audio_effect_spectrum_analyzer.cpp
+++ b/servers/audio/effects/audio_effect_spectrum_analyzer.cpp
@@ -130,7 +130,7 @@ Vector2 AudioEffectSpectrumAnalyzerInstance::get_magnitude_for_frequency_range(f
}
uint64_t time = OS::get_singleton()->get_ticks_usec();
float diff = double(time - last_fft_time) / 1000000.0 + base->get_tap_back_pos();
- diff -= AudioServer::get_singleton()->get_output_delay();
+ diff -= AudioServer::get_singleton()->get_output_latency();
float fft_time_size = float(fft_size) / mix_rate;
int fft_index = fft_pos;