diff options
author | XANTRONIX Development | 2022-02-16 23:28:36 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-16 23:28:36 -0500 |
commit | 9fb7aeb8d5806575b6f6a6042b5315de28a0d4ff (patch) | |
tree | 7656cd7e2525dc00225353ea3519046e22658b00 | |
parent | 0cb3f8511ce4fae921c41490129c884ec8d746a7 (diff) | |
download | xas-9fb7aeb8d5806575b6f6a6042b5315de28a0d4ff.tar.gz xas-9fb7aeb8d5806575b6f6a6042b5315de28a0d4ff.tar.bz2 xas-9fb7aeb8d5806575b6f6a6042b5315de28a0d4ff.zip |
this halo is welded on now
-rw-r--r-- | src/spatial.c | 14 |
1 files changed, 14 insertions, 0 deletions
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) { |