From 5460067b61f86843a0435ebb06a6ebb8223c3dca Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 31 Mar 2017 07:15:28 +0000 Subject: opnassg: 3 -> 4 samples per frame to ease SSE data load --- libopna/opnassg-sinc-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libopna/opnassg-sinc-c.c') 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; } -- cgit v1.2.3