diff options
author | XANTRONIX Development | 2022-01-31 10:52:14 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-01-31 10:52:14 -0500 |
commit | 6a280b4d4555000071356e754afe1b686a5bb434 (patch) | |
tree | 72e19f8f7d8c1e3584bfc9a7bfe8c5528c98b305 | |
parent | 26c62832420553f6f82ec3daeef6df08326fc922 (diff) | |
download | xas-6a280b4d4555000071356e754afe1b686a5bb434.tar.gz xas-6a280b4d4555000071356e754afe1b686a5bb434.tar.bz2 xas-6a280b4d4555000071356e754afe1b686a5bb434.zip |
Initial commit of include/xas/synth.h
-rw-r--r-- | include/xas/synth.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/xas/synth.h b/include/xas/synth.h new file mode 100644 index 0000000..4d0fbd0 --- /dev/null +++ b/include/xas/synth.h @@ -0,0 +1,24 @@ +#ifndef _XAS_SYNTH_H +#define _XAS_SYNTH_H + +#include <stdint.h> + +typedef struct _xas_synth xas_synth; + +typedef int16_t (*xas_synth_callback_sample)(xas_synth *synth, void *ctx); + +typedef void (*xas_synth_callback_destroy)(xas_synth *synth, void *ctx); + +struct _xas_synth { + xas_synth_callback_sample sample; + xas_synth_callback_destroy destroy; + void *ctx; +}; + +xas_synth *xas_synth_new(xas_synth_callback_sample sample, + xas_synth_callback_destroy destroy, + void *ctx); + +void xas_synth_destroy(xas_synth *synth); + +#endif /* _XAS_SYNTH_H */ |