Implemented ticket #641
"Improve resampler"
Authored by: numere 2021-09-26
Parent: [r1015]
Child: [r1017]