summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index a3e4a69..0e6fd71 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -10,7 +10,7 @@
#include "audio/synth.h"
#include "audio/tracker.h"
#if !defined(STRIP_ALL)
-#include "audio/wav_dump_backend.h"
+#include "audio/backend/wav_dump_backend.h"
#include <vector>
#endif
#include "generated/assets.h" // Include generated asset header
@@ -242,7 +242,8 @@ int main(int argc, char** argv) {
const float aspect_ratio = platform_state.aspect_ratio;
// Adjusted multiplier for visuals (preventing constant 1.0 saturation)
- const float raw_peak = synth_get_output_peak();
+ // Use real-time peak for proper audio-visual synchronization
+ const float raw_peak = audio_get_realtime_peak();
const float visual_peak = fminf(raw_peak * 8.0f, 1.0f);
// Calculate beat information for synchronization