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 --- include/xas/spatial.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/xas/spatial.h b/include/xas/spatial.h index df956a8..5323558 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -38,8 +38,10 @@ struct _xas_spatial_object { ssize_t shift_l, shift_r; - xas_spatial_coord point; xas_audio_stream *source; + void *ctx; + + xas_spatial_coord point; xas_spatial_object *next; }; @@ -86,7 +88,8 @@ int xas_spatial_scene_set_radius(xas_spatial_scene *scene, float radius); xas_spatial_object *xas_spatial_scene_add_object(xas_spatial_scene *scene, xas_spatial_coord point, - xas_audio_stream *source); + xas_audio_stream *source, + void *ctx); void xas_spatial_scene_position_object(xas_spatial_scene *scene, xas_spatial_object *object, -- cgit v1.2.3