From 383ef5610370db5881b102b8906dc2f55fcbf0aa Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 31 Jan 2022 13:17:00 -0500 Subject: Heh. This works. --- examples/test.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/test.c b/examples/test.c index a56da4b..e1da192 100644 --- a/examples/test.c +++ b/examples/test.c @@ -60,7 +60,7 @@ int main(int argc, char **argv) { xas_synth *synth; synth_sine sine = { - .flags = SYNTH_STATUS_CLEAR, + .flags = SYNTH_STATUS_ON, .phase = 0.0f, .frequency = 220 }; @@ -94,7 +94,9 @@ int main(int argc, char **argv) { xas_synth_sample(synth) }; - xas_synth_fill(synth, samples, 1); + xas_audio_stream_write(stream, + samples, + 1); } xas_audio_stream_flush(stream); -- cgit v1.2.3