summaryrefslogtreecommitdiff
path: root/src/audio/synth.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-08 11:13:53 +0100
committerskal <pascal.massimino@gmail.com>2026-02-08 11:13:53 +0100
commit392d03c0c05f24be3210a04d9a50cd9714d1e265 (patch)
tree3c4985879bdf614536020f2061c299ecf442677f /src/audio/synth.cc
parentd2d20763ac61f59187d261bb7d6dedcab525bc54 (diff)
refactor(audio): Finalize audio sync, update docs, and clean up test artifacts
- Implemented sample-accurate audio-visual synchronization by using the hardware audio clock as the master time source. - Ensured tracker updates and visual rendering are slaved to the stable audio clock. - Corrected to accept and use delta time for sample-accurate event scheduling. - Updated all relevant tests (, , , , ) to use the new delta time parameter. - Added function. - Marked Task #71 as completed in . - Updated to reflect the audio system's current status. - Created a handoff document: . - Removed temporary peak log files (, ).
Diffstat (limited to 'src/audio/synth.cc')
-rw-r--r--src/audio/synth.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/synth.cc b/src/audio/synth.cc
index e790c12..5fadf3c 100644
--- a/src/audio/synth.cc
+++ b/src/audio/synth.cc
@@ -67,6 +67,10 @@ void synth_set_tempo_scale(float tempo_scale) {
g_tempo_scale = tempo_scale;
}
+float synth_get_tempo_scale() {
+ return g_tempo_scale;
+}
+
int synth_register_spectrogram(const Spectrogram* spec) {
#if defined(DEBUG_LOG_SYNTH)
// VALIDATION: Check spectrogram pointer and data