Audioresample Latency changes after the first use in pipeline.
I am resampling audio from 8kHz to 48kHz, first time i get additional latency from audioresample by 4ms next time i try to resample i get 0. Why? is there anything wrong with audioresample or its meant to increase latency first time then decrease latency?
example pipeline for the receiver: (there are more receivebins connected to inputselector)
_______________________________ReceivBin_____________________ | udpsrc-rtpbin-rtppcmudepay-mulawdec-audioresample-capsfilter|-inputselector-alsasink |_____________________________________________________________|
- pipeline gets 4ms additional latency
- Set state to NULL on ReceivBin
- Set State To Playing and start to receive buffers the 4ms are removed for some reason.