diff options
Diffstat (limited to 'src/app/main.cc')
| -rw-r--r-- | src/app/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/main.cc b/src/app/main.cc index c85877b..4cddc8a 100644 --- a/src/app/main.cc +++ b/src/app/main.cc @@ -142,6 +142,8 @@ int main(int argc, char** argv) { static float g_last_audio_time = 0.0f; auto fill_audio_buffer = [&](float audio_dt, double physical_time) { + const float prev_tempo = g_tempo_scale; + // Calculate tempo scale if --tempo flag enabled if (tempo_test_enabled) { const float t = (float)physical_time; @@ -161,8 +163,6 @@ int main(int argc, char** argv) { g_tempo_scale = 1.0f; // No tempo variation } - const float prev_tempo = g_tempo_scale; - #if !defined(STRIP_ALL) // Debug output when tempo changes significantly if (fabsf(g_tempo_scale - prev_tempo) > 0.05f) { |
