diff options
author | XANTRONIX Development | 2022-03-16 01:41:19 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-16 01:41:24 -0400 |
commit | 9b3c0674ecd647f68736ab18897381c478d48546 (patch) | |
tree | 88abae164aa5ec71d4fd648f83b18c96ed54c484 | |
parent | c37b073de965d23a172a5364af5e541d9738b12b (diff) | |
download | xas-9b3c0674ecd647f68736ab18897381c478d48546.tar.gz xas-9b3c0674ecd647f68736ab18897381c478d48546.tar.bz2 xas-9b3c0674ecd647f68736ab18897381c478d48546.zip |
Relocate method in src/scene.c
-rw-r--r-- | include/xas/spatial.h | 5 | ||||
-rw-r--r-- | src/spatial.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/include/xas/spatial.h b/include/xas/spatial.h index 832f06c..4b0f6a7 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -127,6 +127,8 @@ void xas_spatial_scene_position_object(xas_spatial_scene *scene, xas_spatial_object *object, xas_spatial_coord point); +xas_audio_stream *xas_spatial_scene_stream_new(xas_spatial_scene *scene, + size_t buffer_size); void xas_spatial_object_get_point(xas_spatial_object *object, xas_spatial_coord *point); @@ -141,7 +143,4 @@ void xas_spatial_object_get_heading(xas_spatial_object *object, void xas_spatial_object_set_heading(xas_spatial_object *object, xas_spatial_coord heading); -xas_audio_stream *xas_spatial_scene_stream_new(xas_spatial_scene *scene, - size_t buffer_size); - #endif /* _XAS_SPATIAL_H */ diff --git a/src/spatial.c b/src/spatial.c index ef05e19..b40adc7 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -616,6 +616,14 @@ void xas_spatial_scene_position_object(xas_spatial_scene *scene, object_update_delays(scene); } +xas_audio_stream *xas_spatial_scene_stream_new(xas_spatial_scene *scene, + size_t buffer_size) { + return xas_audio_stream_new_source((xas_audio_fill)scene_fill, + NULL, + scene->format, + buffer_size, + scene); +} void xas_spatial_object_get_point(xas_spatial_object *object, xas_spatial_coord *point) { point->x = object->point.x; |