summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-27 17:28:02 -0500
committerXANTRONIX Development2022-02-27 17:28:02 -0500
commit1cc112d8ef190185c6c08989b97e534a1c3b63f4 (patch)
treea3656e13ed84f863ee7236fb5de7a0cc5db980ce /include
parentb7c5722e33c5fe993fac31738d78ce2ac05f4747 (diff)
downloadxas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.tar.gz
xas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.tar.bz2
xas-1cc112d8ef190185c6c08989b97e534a1c3b63f4.zip
Save context data when adding scene objects
Diffstat (limited to 'include')
-rw-r--r--include/xas/spatial.h7
1 files changed, 5 insertions, 2 deletions
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,