diff options
Diffstat (limited to 'src/audio/synth.h')
| -rw-r--r-- | src/audio/synth.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/synth.h b/src/audio/synth.h index cb0d1df..ba96167 100644 --- a/src/audio/synth.h +++ b/src/audio/synth.h @@ -44,4 +44,8 @@ void synth_set_tempo_scale( float tempo_scale); // Set playback speed (1.0 = normal) int synth_get_active_voice_count(); + +// Get peak amplitude of synthesized audio (measured at ring buffer write time) +// NOTE: For audio-visual synchronization, use audio_get_realtime_peak() instead +// This function measures peak ~400ms ahead of playback (at synth_render time) float synth_get_output_peak(); |
