diff options
Diffstat (limited to 'libopna/opnassg-sinc-c.c')
-rw-r--r-- | libopna/opnassg-sinc-c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopna/opnassg-sinc-c.c b/libopna/opnassg-sinc-c.c index bf93039..5f9baee 100644 --- a/libopna/opnassg-sinc-c.c +++ b/libopna/opnassg-sinc-c.c @@ -6,7 +6,7 @@ void opna_ssg_sinc_calc_c(unsigned resampler_index, const int16_t *inbuf, int32_ for (int j = 0; j < OPNA_SSG_SINCTABLELEN; j++) { unsigned sincindex = j; if (!(resampler_index&1)) sincindex += OPNA_SSG_SINCTABLELEN; - chsample += inbuf[(((resampler_index)>>1)+j)*3+c] * opna_ssg_sinctable[sincindex]; + chsample += inbuf[(((resampler_index)>>1)+j)*4+c] * opna_ssg_sinctable[sincindex]; } outbuf[c] = chsample; } |