From 0cb3f8511ce4fae921c41490129c884ec8d746a7 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Feb 2022 23:03:25 -0500 Subject: Sometimes you just don't care because you forgot --- include/xas/spatial.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/xas/spatial.h b/include/xas/spatial.h index a715b65..ee2f659 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -37,6 +37,15 @@ typedef struct _xas_spatial_observer { typedef struct _xas_spatial_object xas_spatial_object; struct _xas_spatial_object { + float distance_l, + distance_r; + + size_t delta_l, + delta_r; + + size_t shift_l, + shift_r; + xas_spatial_coord coord; xas_audio_stream *source; xas_spatial_object *next; @@ -87,12 +96,13 @@ xas_spatial_object *xas_spatial_scene_add_object(xas_spatial_scene *scene, xas_spatial_coord coord, xas_audio_stream *source); +void xas_spatial_scene_position_object(xas_spatial_scene *scene, + xas_spatial_object *object, + xas_spatial_coord coord); + void xas_spatial_object_get_coord(xas_spatial_object *object, xas_spatial_coord *coord); -void xas_spatial_object_set_coord(xas_spatial_object *object, - xas_spatial_coord coord); - xas_audio_stream *xas_spatial_scene_new_stream(xas_spatial_scene *scene, size_t buffer_size); -- cgit v1.2.3