diff options
author | XANTRONIX Development | 2022-03-16 00:32:29 -0400 |
---|---|---|
committer | XANTRONIX Development | 2022-03-16 00:32:29 -0400 |
commit | 5b8a8d2ee0d96a2f279b2829bb1488c090f091e6 (patch) | |
tree | 4a5716aad22bc26a15a1e884f72af949973bd486 | |
parent | afbcc80972c175003d51c7a87015d597257efbbe (diff) | |
download | xas-5b8a8d2ee0d96a2f279b2829bb1488c090f091e6.tar.gz xas-5b8a8d2ee0d96a2f279b2829bb1488c090f091e6.tar.bz2 xas-5b8a8d2ee0d96a2f279b2829bb1488c090f091e6.zip |
Remove xas_spatial_object_stop(), start()
-rw-r--r-- | include/xas/spatial.h | 3 | ||||
-rw-r--r-- | src/seq.c | 4 | ||||
-rw-r--r-- | src/spatial.c | 17 |
3 files changed, 2 insertions, 22 deletions
diff --git a/include/xas/spatial.h b/include/xas/spatial.h index 00cf8ff..832f06c 100644 --- a/include/xas/spatial.h +++ b/include/xas/spatial.h @@ -127,9 +127,6 @@ void xas_spatial_scene_position_object(xas_spatial_scene *scene, xas_spatial_object *object, xas_spatial_coord point); -int xas_spatial_object_start(xas_spatial_object *object); - -int xas_spatial_object_stop(xas_spatial_object *object); void xas_spatial_object_get_point(xas_spatial_object *object, xas_spatial_coord *point); @@ -489,10 +489,10 @@ error_malloc_ev: static int event_trigger(xas_spatial_scene *scene, xas_seq_event *ev) { switch (ev->type) { case XAS_SEQ_EVENT_OFF: - return xas_spatial_object_stop(ev->object); + return xas_object_stop(ev->object->ctx); case XAS_SEQ_EVENT_ON: - return xas_spatial_object_start(ev->object); + return xas_object_start(ev->object->ctx); case XAS_SEQ_EVENT_SET_POSITION: xas_spatial_scene_position_object(scene, diff --git a/src/spatial.c b/src/spatial.c index ec1c711..ef05e19 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -644,20 +644,3 @@ void xas_spatial_object_set_heading(xas_spatial_object *object, object->heading.y = heading.y; object->heading.z = heading.z; } - -int xas_spatial_object_start(xas_spatial_object *object) { - return ((xas_object *)object->ctx)->start((xas_object *)object->ctx); -} - -int xas_spatial_object_stop(xas_spatial_object *object) { - return ((xas_object *)object->ctx)->stop((xas_object *)object->ctx); -} - -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); -} |