diff options
author | XANTRONIX Development | 2022-02-16 23:03:25 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-16 23:03:25 -0500 |
commit | 0cb3f8511ce4fae921c41490129c884ec8d746a7 (patch) | |
tree | f3003cfe78362f38f320172a69cc496798f9844a /include/xas | |
parent | 45a07925a5ec2c0ebe3771ab258e0751d4113a68 (diff) | |
download | xas-0cb3f8511ce4fae921c41490129c884ec8d746a7.tar.gz xas-0cb3f8511ce4fae921c41490129c884ec8d746a7.tar.bz2 xas-0cb3f8511ce4fae921c41490129c884ec8d746a7.zip |
Sometimes you just don't care because you forgot
Diffstat (limited to 'include/xas')
-rw-r--r-- | include/xas/spatial.h | 16 |
1 files changed, 13 insertions, 3 deletions
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); |