]> code.delx.au - pulseaudio/commit
resamplers: Rework the peaks resampler
authorMaarten Bosmans <mkbosmans@gmail.com>
Wed, 2 Nov 2011 20:54:16 +0000 (21:54 +0100)
committerColin Guthrie <colin@mageia.org>
Sun, 27 Nov 2011 16:25:04 +0000 (16:25 +0000)
commit115d903ab7bdd4b88cceacae1f546ef59b570286
tree70ed8b12d80a273d268bf43a1dc712d2ba814de7
parentae179d7321761d24960972c94ec412ad1713cfd3
resamplers: Rework the peaks resampler

The algorithm had been implemented the same way as the trivial resampler.  But
an important difference between the two is that the trivial resampler can write
an output as soon as the first corresponding input sample is seen, whereas the
peaks resampler must have read all input samples before writing an output
sample.

With this rework, the peaks resampler now outputs samples correctly when the
input data is spanning multiple memblocks.
src/pulsecore/resampler.c