vlc/vlc-2.0 | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Dec 6 23:31:54 2012 +0200| [614ff5993766ac102c486384e8c74f1dd2a14d25] | committer: Rémi Denis-Courmont
PulseAudio: force minreq to less than half tlength (refs #7827) This should work-around distorsion due to excessively short latency computation in PulseAudio, e.g. NVIDIA HDMI Audio. In the longer term, VLC should probably set minreq to 40ms and tlength to a larger value or even -1. But that would require more testing. (cherry picked from commit a1ddda85bb3cbd7ec4b7bb0aa0fd80c9a6d3afe7) > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=614ff5993766ac102c486384e8c74f1dd2a14d25 --- modules/audio_output/pulse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c index 12e1bcc..b3d79f2 100644 --- a/modules/audio_output/pulse.c +++ b/modules/audio_output/pulse.c @@ -848,7 +848,7 @@ static int Open(vlc_object_t *obj) * TODO? tlength could be adaptively increased to reduce wakeups. */ attr.tlength = pa_usec_to_bytes(AOUT_MIN_PREPARE_TIME, &ss); attr.prebuf = 0; /* trigger manually */ - attr.minreq = -1; + attr.minreq = attr.tlength / 3; attr.fragsize = 0; /* not used for output */ /* Allocate structures */ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
