This commit is contained in:
Michael Sippel 2024-12-08 20:02:05 +01:00
parent 804e1cb738
commit 906ea67f75
Signed by: senvas
GPG key ID: F96CF119C34B64A6
2 changed files with 30 additions and 0 deletions

0
sust.c Normal file
View file

30
sust.h Normal file
View file

@ -0,0 +1,30 @@
#pragma once
#include <stdbool.h>
#include <stddef.h>
enum sust_mode {
MODE_Sustain,
MODE_Sostenuto
};
struct sust {
enum sust_mode mode;
bool recording;
bool playing;
size_t idx;
float * buf;
};
void sust_init(
struct sust * sust
);
void sust_process(
struct sust * sust,
size_t frame_size,
float const * in,
float * out
);