summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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);