From 9fb7aeb8d5806575b6f6a6042b5315de28a0d4ff Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Feb 2022 23:28:36 -0500 Subject: this halo is welded on now --- src/spatial.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/spatial.c b/src/spatial.c index f4f6b70..bba5ace 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -211,11 +211,25 @@ void xas_spatial_scene_set_observer(xas_spatial_scene *scene, scene->observer.width = width; } +static void object_position(xas_spatial_scene *scene, + xas_spatial_object *object, + xas_spatial_coord coord); + void xas_spatial_scene_set_speaker_coords(xas_spatial_scene *scene, xas_spatial_coord speaker_l, xas_spatial_coord speaker_r) { + xas_spatial_object *obj = scene->first; + scene->speaker_l = speaker_l; scene->speaker_r = speaker_r; + + while (obj) { + xas_spatial_object *next = obj->next; + + object_position(scene, obj, obj->coord); + + obj = next; + } } int xas_spatial_scene_set_speed(xas_spatial_scene *scene, float speed) { -- cgit v1.2.3