diff options
author | Max Kellermann <max@duempel.org> | 2008-12-08 08:58:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-08 08:58:27 +0100 |
commit | 5b11d5a3320a037d715ab292020666fea0ed3993 (patch) | |
tree | 4ac8858c10452777e6187ed29a9a53e11aeacd5e /src/output_thread.c | |
parent | 0128a9e91025c6d6dea145dabfa447150f8d9916 (diff) | |
download | mpd-5b11d5a3320a037d715ab292020666fea0ed3993.tar.gz mpd-5b11d5a3320a037d715ab292020666fea0ed3993.tar.xz mpd-5b11d5a3320a037d715ab292020666fea0ed3993.zip |
pcm_utils: always round up resampling buffer size
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.
Diffstat (limited to 'src/output_thread.c')
0 files changed, 0 insertions, 0 deletions