[pulseaudio-discuss] [PATCH 00/13] loopback: Make module-loopback honor requested latency (v5)

Alexander E. Patrakov patrakov at gmail.com
Sun Nov 22 07:12:51 PST 2015


20.11.2015 13:08, Georg Chini wrote:
> Any idea how to retrieve the required information from the resampler?

The only way to extract this information is to write your own resampler. 
The problem is that no library-based resampler supported by PulseAudio 
exposes this information.

I think it would be easy enough to turn the imported ffmpeg resampler 
into a variable-rate one (especially since it already contains 
now-unused code just for this purpose, and because it is stateless and 
relies on the caller to resubmit samples). Then, as we have essentially 
forked it, we can do whatever we want, including instrumentation to 
retrieve the latency between the last submitted and the last produced 
sample. Then you can force the loopback module to use the ffmpeg 
resampler, and then get the information that you need.

-- 
Alexander E. Patrakov


More information about the pulseaudio-discuss mailing list