summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-27 15:34:26 -0500
committerXANTRONIX Development2022-02-27 15:34:26 -0500
commitb7c5722e33c5fe993fac31738d78ce2ac05f4747 (patch)
tree6a0b53a5b5e3b397ddca00ab987b574d7c436dd9 /examples
parenta540a8d63aee39aaaa259d1db42e1af4e38f3d80 (diff)
downloadxas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.tar.gz
xas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.tar.bz2
xas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.zip
Plug resource leaks in examples/spatial.c
Diffstat (limited to 'examples')
-rw-r--r--examples/spatial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/spatial.c b/examples/spatial.c
index b291fd2..ac467ee 100644
--- a/examples/spatial.c
+++ b/examples/spatial.c
@@ -116,6 +116,8 @@ int main(int argc, char **argv) {
goto error_vox_new;
}
+ xas_vox_set_parameter_float(vox, "Duration_Stretch", 1.3);
+
if ((voice = xas_vox_stream_new(vox)) == NULL) {
goto error_vox_stream_new;
}
@@ -168,6 +170,8 @@ int main(int argc, char **argv) {
xas_audio_stream_destroy(output);
xas_spatial_scene_destroy(scene);
+ xas_audio_stream_destroy(voice);
+ xas_vox_destroy(vox);
xas_audio_stream_destroy(synth);
xas_audio_stream_destroy(wave);