diff options
Diffstat (limited to 'include/xas/synth.h')
-rw-r--r-- | include/xas/synth.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/xas/synth.h b/include/xas/synth.h index 1d070aa..20446cd 100644 --- a/include/xas/synth.h +++ b/include/xas/synth.h @@ -13,19 +13,16 @@ 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_audio_format format; 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_audio_stream *xas_synth_new(xas_synth_callback_sample sample, xas_synth_callback_cleanup cleanup, + xas_audio_format format, + size_t buffer_size, void *ctx); #endif /* _XAS_SYNTH_H */ |