diff options
author | XANTRONIX Development | 2022-01-31 13:17:00 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-01-31 13:17:00 -0500 |
commit | 383ef5610370db5881b102b8906dc2f55fcbf0aa (patch) | |
tree | 03fb964e9d38eb4029b8ee8a57d38f84f339c680 /examples | |
parent | 300f39e19369d44d3217bf1122d1feeaef4a0f5d (diff) | |
download | xas-383ef5610370db5881b102b8906dc2f55fcbf0aa.tar.gz xas-383ef5610370db5881b102b8906dc2f55fcbf0aa.tar.bz2 xas-383ef5610370db5881b102b8906dc2f55fcbf0aa.zip |
Heh. This works.
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); |