#ifndef _XAS_SYNTH_H #define _XAS_SYNTH_H #include #include #include typedef struct _xas_synth xas_synth; typedef int16_t (*xas_synth_callback_sample)(xas_synth *synth, void *ctx); typedef void (*xas_synth_callback_cleanup)(xas_synth *synth, void *ctx); struct _xas_synth { size_t sample_size, sample_rate; xas_synth_callback_sample sample; xas_synth_callback_cleanup cleanup; void *ctx; }; xas_audio_stream *xas_synth_new(size_t sample_size, size_t sample_rate, size_t buffer_size, xas_synth_callback_sample sample, xas_synth_callback_cleanup cleanup, void *ctx); #endif /* _XAS_SYNTH_H */