From b7c5722e33c5fe993fac31738d78ce2ac05f4747 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 27 Feb 2022 15:34:26 -0500 Subject: Plug resource leaks in examples/spatial.c --- examples/spatial.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') 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); -- cgit v1.2.3