SRC/ALGORITHMS: Fix a bug in peak finder function

The output number was always relative to the beginning of the peak sample,
e.g. always lower than 2.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>