• Max Kellermann's avatar
    pcm_utils: always round up resampling buffer size · 5b11d5a3
    Max Kellermann authored
    libsamplerate produces cracks in the sound output when the destination
    buffer is too small.  This is the case when pcm_convert_size() rounds
    down.  Use ceil(x) instead of floor(0.5+x) there to prevent a buffer
    overrun.
    5b11d5a3
pcm_utils.c 10.7 KB