diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/script.c | 6 | ||||
-rw-r--r-- | src/spatial.c | 2 | ||||
-rw-r--r-- | src/synth.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/script.c b/src/script.c index b983577..29d76ca 100644 --- a/src/script.c +++ b/src/script.c @@ -279,9 +279,9 @@ int xas_script_play(xas_script *script, xas_audio_stream *sink) { int16_t *samples; - if ((source = xas_spatial_scene_new_stream(script->scene, + if ((source = xas_spatial_scene_stream_new(script->scene, script->buffer_size)) == NULL) { - goto error_spatial_scene_new_stream; + goto error_spatial_scene_stream_new; } while (ev) { @@ -321,6 +321,6 @@ error_audio_stream_io: error_event_trigger: xas_audio_stream_destroy(source); -error_spatial_scene_new_stream: +error_spatial_scene_stream_new: return -1; } diff --git a/src/spatial.c b/src/spatial.c index da89ad3..63207fa 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -444,7 +444,7 @@ int xas_spatial_object_stop(xas_spatial_object *object) { return ((xas_object *)object->ctx)->stop((xas_object *)object->ctx); } -xas_audio_stream *xas_spatial_scene_new_stream(xas_spatial_scene *scene, +xas_audio_stream *xas_spatial_scene_stream_new(xas_spatial_scene *scene, size_t buffer_size) { return xas_audio_stream_new_source((xas_audio_fill)scene_fill, NULL, diff --git a/src/synth.c b/src/synth.c index 83787b7..650c8c9 100644 --- a/src/synth.c +++ b/src/synth.c @@ -183,7 +183,7 @@ void xas_synth_stop(xas_synth *synth) { synth->phase = 0.0f; } -xas_audio_stream *xas_synth_new_stream(xas_synth *synth) { +xas_audio_stream *xas_synth_stream_new(xas_synth *synth) { return xas_audio_stream_new_source((xas_audio_fill)synth_fill, NULL, synth->format, |