implement voice stealing

This commit is contained in:
thib8956 committed 2026-11-02 21:18:28 +01:00
1 parent 5e5f08c4f9
commit 2b1a2b59d4
3 files changed
+45 -24

No files matched your search

+2 -3
View File
@@ -13,17 +13,16 @@ typedef enum {
} Waveform;
typedef struct {
uint8_t id;
float phase;
float freq;
float gain;
float attack_ms;
float release_ms;
float filter_cutoff;
float lp;
bool is_playing;
Waveform form;
} Note;
void play_note(Note *note, float *buffer, int buffer_size);
void play_note(Note *note, float *buffer, unsigned int buffer_size, float sample_rate);
#endif // NOTE_H