summaryrefslogtreecommitdiff
path: root/src/app/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.cc')
-rw-r--r--src/app/main.cc17
1 files changed, 10 insertions, 7 deletions
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;
}