From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- src/app/main.cc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/app/main.cc') diff --git a/src/app/main.cc b/src/app/main.cc index 5d699ce..27d6312 100644 --- a/src/app/main.cc +++ b/src/app/main.cc @@ -225,8 +225,8 @@ int main(int argc, char** argv) { if ((int)physical_time % 5 == 0 && physical_time - update_dt < (int)physical_time) { - printf(" Progress: %.1fs / %.1fs (music: %.1fs)\r", - physical_time, headless_duration, g_music_time); + printf(" Progress: %.1fs / %.1fs (music: %.1fs)\r", physical_time, + headless_duration, g_music_time); fflush(stdout); } } @@ -349,9 +349,11 @@ int main(int argc, char** argv) { const float visual_peak = fminf(raw_peak * 8.0f, 1.0f); // Beat calculation: convert audio time to musical beats - const float absolute_beat_time = current_audio_time * g_tracker_score.bpm / 60.0f; + const float absolute_beat_time = + current_audio_time * g_tracker_score.bpm / 60.0f; const int beat_number = (int)absolute_beat_time; - const float beat_phase = fmodf(absolute_beat_time, 1.0f); // Fractional part (0.0 to 1.0) + const float beat_phase = + fmodf(absolute_beat_time, 1.0f); // Fractional part (0.0 to 1.0) // Print beat/time info periodically for identifying sync points // Use graphics time for the print interval to avoid excessive output if @@ -366,9 +368,10 @@ int main(int argc, char** argv) { current_physical_time, current_audio_time, g_music_time, beat_number, beat_phase, visual_peak, g_tempo_scale); } else { - printf("[GraphicsT=%.2f, AudioT=%.2f, Beat=%d, Phase=%.2f, Peak=%.2f]\n", - current_physical_time, current_audio_time, beat_number, beat_phase, - visual_peak); + printf( + "[GraphicsT=%.2f, AudioT=%.2f, Beat=%d, Phase=%.2f, Peak=%.2f]\n", + current_physical_time, current_audio_time, beat_number, beat_phase, + visual_peak); } last_graphics_print_time = current_physical_time; } -- cgit v1.2.3