I noticed audio that I was filtering through libsamplerate would stutter a bit right after a sample rate change. It was because src_process was producing slightly fewer samples than requested, so my audio playback buffer wasn't being completely filled.
I looked around at toy programs that use libsamplerate and saw that some of them add 64 to the input_frames after computing the ratio of input_frames.
When I add 64 to input_frames in my program it stops stuttering as well. What behavior is this relying on?
I noticed audio that I was filtering through libsamplerate would stutter a bit right after a sample rate change. It was because
src_process
was producing slightly fewer samples than requested, so my audio playback buffer wasn't being completely filled.I looked around at toy programs that use libsamplerate and saw that some of them add 64 to the input_frames after computing the ratio of input_frames.
When I add 64 to input_frames in my program it stops stuttering as well. What behavior is this relying on?