[pulseaudio-discuss] [PATCH 2/7] lfe-filter: Enable LFE filter in the resampler

Alexander E. Patrakov patrakov at gmail.com
Tue Feb 17 05:45:56 PST 2015


17.02.2015 17:29, David Henningsson wrote:
> +void lr4_process_float32(struct lr4 *lr4, int samples, int channels, float *src, float *dest)
> +{
...
> +		dest[i] = PA_CLAMP_UNLIKELY((int) z, -0x8000, 0x7fff);
...
> +}
> +
> +void lr4_process_s16(struct lr4 *lr4, int samples, int channels, short *src, short *dest)
> +{
...
> +		dest[i] = z;
...
> +}

The clamping is misplaced.

-- 
Alexander E. Patrakov


More information about the pulseaudio-discuss mailing list