summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-16 23:03:25 -0500
committerXANTRONIX Development2022-02-16 23:03:25 -0500
commit0cb3f8511ce4fae921c41490129c884ec8d746a7 (patch)
treef3003cfe78362f38f320172a69cc496798f9844a /include
parent45a07925a5ec2c0ebe3771ab258e0751d4113a68 (diff)
downloadxas-0cb3f8511ce4fae921c41490129c884ec8d746a7.tar.gz
xas-0cb3f8511ce4fae921c41490129c884ec8d746a7.tar.bz2
xas-0cb3f8511ce4fae921c41490129c884ec8d746a7.zip
Sometimes you just don't care because you forgot
Diffstat (limited to 'include')
-rw-r--r--include/xas/spatial.h16
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);