From b5bd5840744a0a3e36b1be8f9ab95492d1005bca Mon Sep 17 00:00:00 2001 From: spl3g Date: Sat, 1 Nov 2025 19:34:45 +0300 Subject: Show the waves! (badly) --- src/sounds.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sounds.h') diff --git a/src/sounds.h b/src/sounds.h index 290a0b0..2d185d6 100644 --- a/src/sounds.h +++ b/src/sounds.h @@ -9,6 +9,7 @@ #include "messages.h" #include "midi_freqs.h" +#include "defines.h" #define check(ret) \ do { \ @@ -20,12 +21,10 @@ } \ } while (0) -#define SAMPLE_RATE 48000 -#define PERIOD_SIZE 480 - typedef struct { snd_pcm_t *pcm; message_queue *queue; + WaveData *wave_data; } sound_thread_meta; typedef enum { @@ -68,6 +67,7 @@ typedef struct { oscilator_type oscilator_type; float master_volume; envelope_params envelope_params; + float last_freq; } synth_params; typedef float (*oscilator_func)(float phase); -- cgit v1.2.3