[vlc-devel] [PATCH] pulseaudio plugin - vlc drops samples with usb sound card

Ilkka Ollakka ileoo at videolan.org
Wed Mar 9 10:31:38 CET 2011


On Sat, Feb 19, 2011 at 05:43:02PM +0100, R.M. wrote:

Applied in 7aaf63551d1e87d3219acd5a3cec1fa25250bfe3 in master, I'll
backport it if it doesn't cause issues for someone else.

> --- vlc-1.1.7/modules/audio_output/pulse.c	2011-01-27 15:37:36.000000000 +0100
> +++ vlc-1.1.7-new/modules/audio_output/pulse.c	2011-02-19 17:20:23.000000000 +0100
> @@ -197,13 +197,14 @@

>      /* Reduce overall latency to 200mS to reduce audible clicks
>       * Also pulse minreq and internal buffers are now 20mS which reduces resampling
> +     * Minreq and internal buffers increased to 100ms because vlc drops samples with usb sound card
>       */
>      a.tlength = pa_bytes_per_second(&ss)/5;
>      a.maxlength = a.tlength * 2;
>      a.prebuf = a.tlength / 2;
> -    a.minreq = a.tlength / 10;
> +    a.minreq = a.tlength / 2;

> -    /* Buffer size is 20mS */
> +    /* Buffer size is 100mS */
>      p_sys->buffer_size = a.minreq;

>      /* Initialise the speaker map setup above */

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel


-- 
Ilkka Ollakka
"The identical is equal to itself, since it is different."
		-- Franco Spisani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110309/3cfc3e60/attachment.sig>


More information about the vlc-devel mailing list