summaryrefslogtreecommitdiff
path: root/src/audio/synth.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-01 00:58:20 +0100
committerskal <pascal.massimino@gmail.com>2026-02-01 01:13:53 +0100
commit18eb8a07ba39a8aad1c75521cee027b9c9c72e40 (patch)
tree87e498dbaffdd591eb94fddca315f6ba28756a32 /src/audio/synth.h
parent03cd94817097e59a0809b222e0e1e74dd9a8ede7 (diff)
clang-format
Diffstat (limited to 'src/audio/synth.h')
-rw-r--r--src/audio/synth.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/synth.h b/src/audio/synth.h
index 45a9410..a0720f2 100644
--- a/src/audio/synth.h
+++ b/src/audio/synth.h
@@ -11,8 +11,8 @@
#define MAX_SPECTROGRAMS 8
struct Spectrogram {
- const float *spectral_data_a; // Front buffer
- const float *spectral_data_b; // Back buffer (for double-buffering)
+ const float* spectral_data_a; // Front buffer
+ const float* spectral_data_b; // Back buffer (for double-buffering)
int num_frames;
};
@@ -20,15 +20,15 @@ void synth_init();
void synth_shutdown();
// Register a spectrogram for playback. Returns an ID or -1.
-int synth_register_spectrogram(const Spectrogram *spec);
+int synth_register_spectrogram(const Spectrogram* spec);
void synth_unregister_spectrogram(int spectrogram_id);
// Double-buffering API for thread-safe updates
-float *synth_begin_update(int spectrogram_id);
+float* synth_begin_update(int spectrogram_id);
void synth_commit_update(int spectrogram_id);
void synth_trigger_voice(int spectrogram_id, float volume, float pan);
-void synth_render(float *output_buffer, int num_frames);
+void synth_render(float* output_buffer, int num_frames);
int synth_get_active_voice_count();
float synth_get_output_peak();