diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/spatial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spatial.c b/src/spatial.c index 5d74fad..b5bb8b6 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -304,7 +304,7 @@ ssize_t scene_fill(xas_spatial_scene *scene, } if (obj->shift_r == 0) { - dest[XAS_AUDIO_STEREO*index_r] += value_r; + dest[XAS_AUDIO_STEREO*index_r+1] += value_r; } else { while (obj->shift_r > 0) { size_t index = index_r + obj->shift_r; @@ -317,7 +317,7 @@ ssize_t scene_fill(xas_spatial_scene *scene, } while (obj->shift_r < 0) { - dest[XAS_AUDIO_STEREO*index_r] += value_r; + dest[XAS_AUDIO_STEREO*index_r+1] += value_r; obj->shift_r++; } |