GNOME Bugzilla – Bug 796981
audiobuffersplit: Breaks the 1001/30000 pattern
Last modified: 2018-08-17 13:40:37 UTC
How to reproduce: gst-launch-1.0 -v audiotestsrc ! audio/x-raw,rate=48000 ! netsim min-delay=-200 max-delay=200 delay-distribution=uniform delay-probability=0.2 ! audiobuffersplit output-buffer-duration=1001/30000 ! audiorate tolerance=0 ! audio/x-raw,rate=48000 ! audiobuffersplit output-buffer-duration=1001/30000 ! fakesink silent=false Expected result: Difference between two consecutive audio buffers follows this pattern: 0.033354166 0.033375 0.033354167 0.033375 0.033375 Observed result: The pattern breaks after a while, giving streaks of 0.033354167 and/or streaks of 0.033375, then goes back to normal, then breaks again.
Pattern becomes worse with: gst-launch-1.0 -v audiotestsrc ! audio/x-raw,rate=48000 ! netsim min-delay=-200 max-delay=200 delay-distribution=uniform delay-probability=0.2 ! audiobuffersplit ! audiorate tolerance=0 ! audio/x-raw,rate=48000 ! audiobuffersplit output-buffer-duration=1001/30000 ! fakesink silent=false
commit 186870d10ad58c2dc95f5f50a16f29bc1f47bd51 Author: Sebastian Dröge <sebastian@centricular.com> Date: Fri Aug 17 14:56:51 2018 +0300 audiobuffersplit: Update output buffer size after each buffer to compensate for accumulated errors https://bugzilla.gnome.org/show_bug.cgi?id=796981