Skip to content

Commit fd898b4

Browse files
committed
Small optimizations
1 parent 9275b92 commit fd898b4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

include/lsp-plug.in/dsp/common/resampling.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,39 +330,39 @@ LSP_DSP_LIB_SYMBOL(void, lanczos_resample_8x24bit, float *dst, const float *src,
330330
*
331331
* @param dst destination buffer
332332
* @param src source buffer
333-
* @param count number of samples to process
333+
* @param count number of samples to produce
334334
*/
335335
LSP_DSP_LIB_SYMBOL(void, downsample_2x, float *dst, const float *src, size_t count);
336336

337337
/** Copy each 3rd sample to output buffer
338338
*
339339
* @param dst destination buffer
340340
* @param src source buffer
341-
* @param count number of samples to process
341+
* @param count number of samples to produce
342342
*/
343343
LSP_DSP_LIB_SYMBOL(void, downsample_3x, float *dst, const float *src, size_t count);
344344

345345
/** Copy each 4th sample to output buffer
346346
*
347347
* @param dst destination buffer
348348
* @param src source buffer
349-
* @param count number of samples to process
349+
* @param count number of samples to produce
350350
*/
351351
LSP_DSP_LIB_SYMBOL(void, downsample_4x, float *dst, const float *src, size_t count);
352352

353353
/** Copy each 6th sample to output buffer
354354
*
355355
* @param dst destination buffer
356356
* @param src source buffer
357-
* @param count number of samples to process
357+
* @param count number of samples to produce
358358
*/
359359
LSP_DSP_LIB_SYMBOL(void, downsample_6x, float *dst, const float *src, size_t count);
360360

361361
/** Copy each 8th sample to output buffer
362362
*
363363
* @param dst destination buffer
364364
* @param src source buffer
365-
* @param count number of samples to process
365+
* @param count number of samples to produce
366366
*/
367367
LSP_DSP_LIB_SYMBOL(void, downsample_8x, float *dst, const float *src, size_t count);
368368

include/private/dsp/arch/generic/resampling.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,6 @@ namespace lsp
14071407
-0.0000449862367299f,
14081408
-0.0000420749334770f,
14091409
-0.0000147567119155f,
1410-
-0.0000000000000000f,
14111410
};
14121411

14131412
static const float lanczos_6x16bit[] =
@@ -4159,7 +4158,7 @@ namespace lsp
41594158
src += 8;
41604159
}
41614160
}
4162-
}
4163-
}
4161+
} /* namespace generic */
4162+
} /* namespace lsp */
41644163

41654164
#endif /* PRIVATE_DSP_ARCH_GENERIC_RESAMPLING_H_ */

0 commit comments

Comments
 (0)