From 1cc112d8ef190185c6c08989b97e534a1c3b63f4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 27 Feb 2022 17:28:02 -0500 Subject: Save context data when adding scene objects --- examples/spatial.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/spatial.c b/examples/spatial.c index ac467ee..ec606d6 100644 --- a/examples/spatial.c +++ b/examples/spatial.c @@ -135,13 +135,15 @@ int main(int argc, char **argv) { if (xas_spatial_scene_add_object(scene, (xas_spatial_coord){ 5.2, 0.0, 0.0 }, - synth) == NULL) { + synth, + &sine_channels[0]) == NULL) { goto error_spatial_scene_add_object; } if (xas_spatial_scene_add_object(scene, (xas_spatial_coord){ -5.2, 0.0, 0.0 }, - voice) == NULL) { + voice, + vox) == NULL) { goto error_spatial_scene_add_object; } -- cgit v1.2.3