diff options
| author | XANTRONIX Development | 2022-03-06 00:03:45 -0500 | 
|---|---|---|
| committer | XANTRONIX Development | 2022-03-06 00:03:56 -0500 | 
| commit | 79ff65a3613ba81c0d982077bc92d1192faa742b (patch) | |
| tree | 33e32efe47cc10c18009c0c2e88c5543ee5bb01e /src | |
| parent | 7b69e2696ecee24dbfba77749d5400d342a03636 (diff) | |
| download | xas-79ff65a3613ba81c0d982077bc92d1192faa742b.tar.gz xas-79ff65a3613ba81c0d982077bc92d1192faa742b.tar.bz2 xas-79ff65a3613ba81c0d982077bc92d1192faa742b.zip | |
Temporarily remove sample spatial shifting
Diffstat (limited to 'src')
| -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++;          } | 
 
    