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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux