aboutsummaryrefslogtreecommitdiff
path: root/libopna/opnassg-sinc-c.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-03-31 07:15:28 +0000
committerTakamichi Horikawa <takamichiho@gmail.com>2017-03-31 07:15:28 +0000
commit5460067b61f86843a0435ebb06a6ebb8223c3dca (patch)
treef10ab9c06edc70c72c141e9d31035f47a776c7d1 /libopna/opnassg-sinc-c.c
parentf47eba7d7d4c6a1d9501e027b63bbab04bb7d417 (diff)
opnassg: 3 -> 4 samples per frame to ease SSE data load
Diffstat (limited to 'libopna/opnassg-sinc-c.c')
-rw-r--r--libopna/opnassg-sinc-c.c2
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;
}