diff options
-rw-r--r-- | src/spatial.c | 27 |
1 files changed, 2 insertions, 25 deletions
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++; } |