• Max Kellermann's avatar
    pcm/SoxrResampler: round output buffer size up · 8d036c4b
    Max Kellermann authored
    The old formula calculates the output buffer size with "regular"
    rounding (to the nearest integer), however sometimes, that is
    insufficient and the last sample cannot be resampled.  This causes
    audible distortions.  By changing the formula to consider the worst
    case (always round up), this problem is eliminated.
    8d036c4b
SoxrResampler.cxx 4.1 KB