diff options
author | XANTRONIX Development | 2022-02-28 17:14:17 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-28 17:14:17 -0500 |
commit | 78a788bff6779a79357b346901f477060ad5d96f (patch) | |
tree | a5f3f96850b4fa478a867e01184db6baa9886fe0 /examples | |
parent | 727a3047bcb47e5a1985ce51ad4d207b2446fb98 (diff) | |
download | xas-78a788bff6779a79357b346901f477060ad5d96f.tar.gz xas-78a788bff6779a79357b346901f477060ad5d96f.tar.bz2 xas-78a788bff6779a79357b346901f477060ad5d96f.zip |
s/new_stream/stream_new/ for consistency
Diffstat (limited to 'examples')
-rw-r--r-- | examples/say.c | 12 | ||||
-rw-r--r-- | examples/spatial.c | 12 | ||||
-rw-r--r-- | examples/test.c | 12 |
3 files changed, 18 insertions, 18 deletions
diff --git a/examples/say.c b/examples/say.c index 133ec12..6365b02 100644 --- a/examples/say.c +++ b/examples/say.c @@ -111,12 +111,12 @@ int main(int argc, char **argv) { goto error_bank_player_stream_new; } - if ((synth_l = xas_synth_new_stream(sine_l)) == NULL) { - goto error_synth_new_stream_l; + if ((synth_l = xas_synth_stream_new(sine_l)) == NULL) { + goto error_synth_stream_new_l; } - if ((synth_r = xas_synth_new_stream(sine_r)) == NULL) { - goto error_synth_new_stream_r; + if ((synth_r = xas_synth_stream_new(sine_r)) == NULL) { + goto error_synth_stream_new_r; } if ((mixer = xas_mixer_new(format, buffer_size)) == NULL) { @@ -201,10 +201,10 @@ error_mixer_input_add: error_mixer_new: xas_audio_stream_destroy(synth_r); -error_synth_new_stream_r: +error_synth_stream_new_r: xas_audio_stream_destroy(synth_l); -error_synth_new_stream_l: +error_synth_stream_new_l: xas_audio_stream_destroy(player_stream); error_bank_player_stream_new: diff --git a/examples/spatial.c b/examples/spatial.c index 3783500..68d064d 100644 --- a/examples/spatial.c +++ b/examples/spatial.c @@ -72,8 +72,8 @@ int main(int argc, char **argv) { goto error_synth_new; } - if ((synth = xas_synth_new_stream(sine)) == NULL) { - goto error_synth_new_stream; + if ((synth = xas_synth_stream_new(sine)) == NULL) { + goto error_synth_stream_new; } if ((vox = xas_vox_new(format, @@ -94,9 +94,9 @@ int main(int argc, char **argv) { goto error_spatial_scene_new; } - if ((output = xas_spatial_scene_new_stream(scene, + if ((output = xas_spatial_scene_stream_new(scene, buffer_size)) == NULL) { - goto error_spatial_scene_new_stream; + goto error_spatial_scene_stream_new; } if (xas_spatial_scene_add_object(scene, @@ -153,7 +153,7 @@ error_audio_stream_write: error_spatial_scene_add_object: xas_audio_stream_destroy(output); -error_spatial_scene_new_stream: +error_spatial_scene_stream_new: xas_spatial_scene_destroy(scene); error_spatial_scene_new: @@ -165,7 +165,7 @@ error_vox_stream_new: error_vox_new: xas_audio_stream_destroy(synth); -error_synth_new_stream: +error_synth_stream_new: xas_synth_destroy(sine); error_synth_new: diff --git a/examples/test.c b/examples/test.c index 272e32d..cc14571 100644 --- a/examples/test.c +++ b/examples/test.c @@ -64,8 +64,8 @@ int main(int argc, char **argv) { goto error_synth_new_l; } - if ((synth_l = xas_synth_new_stream(sine_l)) == NULL) { - goto error_synth_new_stream_l; + if ((synth_l = xas_synth_stream_new(sine_l)) == NULL) { + goto error_synth_stream_new_l; } if ((sine_r = xas_synth_new(format, @@ -74,8 +74,8 @@ int main(int argc, char **argv) { goto error_synth_new_r; } - if ((synth_r = xas_synth_new_stream(sine_r)) == NULL) { - goto error_synth_new_stream_r; + if ((synth_r = xas_synth_stream_new(sine_r)) == NULL) { + goto error_synth_stream_new_r; } if ((mixer = xas_mixer_new(format, buffer_size)) == NULL) { @@ -130,13 +130,13 @@ error_mixer_input_add: error_mixer_new: xas_audio_stream_destroy(synth_r); -error_synth_new_stream_r: +error_synth_stream_new_r: xas_synth_destroy(sine_r); error_synth_new_r: xas_audio_stream_destroy(synth_l); -error_synth_new_stream_l: +error_synth_stream_new_l: xas_synth_destroy(sine_l); error_synth_new_l: |