diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/test.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |