PPulseAudio Marge Botresampler: Add pa_resampler_prepare() and pa_resampler_get_delay() functions
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
resampler: Fix a memory leak in pa_resampler_ffmpeg_init() ffmpeg_data was not freed properly before return due to error. It is now freed properly. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=95347 Signed-off-by: Sachin Kumar Chauhan <sachin.kc@samsung.com> Signed-off-by: Arun Raghavan <arun@arunraghavan.net> | 10 年前 | |
update FSF addresses to FSF web page FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources. | 11 年前 | |
update FSF addresses to FSF web page FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources. | 11 年前 | |
resampler: Add pa_resampler_prepare() and pa_resampler_get_delay() functions The pa_resampler_get_delay() function allows to retrieve the current resampler delay in input samples for all supported resamplers. The return value is a double to maintain precision when using variable rate resamplers. Because in many places the delay is needed in usec, pa_resampler_get_delay_usec() was also supplied. The speex resampler now skips leading zero samples to provide meaningful delay values. In the next patch, the pa_resampler_prepare() function will be used to train the resampler after a rewind. It takes data from a history memblockq and runs it through the resampler. The output data is discarded. To make this logic possible, the soxr resampler had to be converted to use variable rate. The fixed rate version has a variable delay, therefore the logic above could not be applied. Additionally, with fixed rate, the delay is larger than 150ms in some situations, while with variable rate the delay is fixed and comparable to the other resamplers. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/120> | 4 年前 | |
resampler: Add pa_resampler_prepare() and pa_resampler_get_delay() functions The pa_resampler_get_delay() function allows to retrieve the current resampler delay in input samples for all supported resamplers. The return value is a double to maintain precision when using variable rate resamplers. Because in many places the delay is needed in usec, pa_resampler_get_delay_usec() was also supplied. The speex resampler now skips leading zero samples to provide meaningful delay values. In the next patch, the pa_resampler_prepare() function will be used to train the resampler after a rewind. It takes data from a history memblockq and runs it through the resampler. The output data is discarded. To make this logic possible, the soxr resampler had to be converted to use variable rate. The fixed rate version has a variable delay, therefore the logic above could not be applied. Additionally, with fixed rate, the delay is larger than 150ms in some situations, while with variable rate the delay is fixed and comparable to the other resamplers. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/120> | 4 年前 | |
update FSF addresses to FSF web page FSF addresses used in PA sources are no longer valid and rpmlint generates numerous warnings during packaging because of this. This patch changes all FSF addresses to FSF web page according to the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html Done automatically by sed-ing through sources. | 11 年前 |