mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
resamplers: Use fastpath assert in trivial resampler
When the assert is disabled, the trivial resampler gets a 35% performance boost.
This commit is contained in:
parent
5aedb9b7d3
commit
761fbee663
1 changed files with 1 additions and 1 deletions
|
|
@ -1391,7 +1391,7 @@ static void trivial_resample(pa_resampler *r, const pa_memchunk *input, unsigned
|
|||
if (j >= in_n_frames)
|
||||
break;
|
||||
|
||||
pa_assert(o_index * fz < pa_memblock_get_length(output->memblock));
|
||||
pa_assert_fp(o_index * fz < pa_memblock_get_length(output->memblock));
|
||||
|
||||
memcpy((uint8_t*) dst + fz * o_index,
|
||||
(uint8_t*) src + fz * j, (int) fz);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue