From 79ff65a3613ba81c0d982077bc92d1192faa742b Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 6 Mar 2022 00:03:45 -0500 Subject: Temporarily remove sample spatial shifting --- src/spatial.c | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'src') diff --git a/src/spatial.c b/src/spatial.c index ba0cd6e..2abe22e 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -282,31 +282,8 @@ ssize_t scene_fill(xas_spatial_scene *scene, index_l = index_r = buffer->index; - if (obj->shift_l < 0) { - obj->shift_l++; - } else { - if (obj->shift_l > 0) { - index_l++; - obj->shift_l--; - } - - if (index_l < buffer->size) { - dest[XAS_AUDIO_STEREO*index_l] += value_l; - } - } - - if (obj->shift_r < 0) { - obj->shift_r++; - } else { - if (obj->shift_r > 0) { - index_r++; - obj->shift_r--; - } - - if (index_r < buffer->size) { - dest[XAS_AUDIO_STEREO*index_r+1] += value_r; - } - } + dest[XAS_AUDIO_STEREO*index_l] += value_l; + dest[XAS_AUDIO_STEREO*index_r+1] += value_r; buffer->index++; } -- cgit v1.2.3