Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio: make the resampling code greedy
Read the maximum possible number of audio frames instead of the minimum necessary number of frames when the audio stream is downsampled and the output buffer is limited. This makes the function symmetrical to upsampling when the input buffer is limited. The maximum possible number of frames is written here. With this change it's easier to calculate the exact number of audio frames the resample function will read or write. These two functions will be introduced later. Acked-by: Mark Cave-Ayland <[email protected]> Acked-by: Marc-André Lureau <[email protected]> Signed-off-by: Volker Rümelin <[email protected]> Message-Id: <[email protected]>
- Loading branch information