[vlc-commits] pulseaudio: increase buffer so some usb cards don't drop samples
R.M
git at videolan.org
Wed Mar 9 10:29:38 CET 2011
vlc | branch: master | R.M <rafalm23 at tkdami.net> | Wed Mar 9 11:26:00 2011 +0200| [7aaf63551d1e87d3219acd5a3cec1fa25250bfe3] | committer: Ilkka Ollakka
pulseaudio: increase buffer so some usb cards don't drop samples
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7aaf63551d1e87d3219acd5a3cec1fa25250bfe3
---
modules/audio_output/pulse.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 8e0288f..e634c4e 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -183,14 +183,15 @@ static int Open ( vlc_object_t *p_this )
}
/* Reduce overall latency to 200mS to reduce audible clicks
- * Also pulse minreq and internal buffers are now 20mS which reduces resampling
+ * Also pulse minreq and internal buffers are now 100mS which reduces resampling
+ * but still shouldn't drop samples with some usb sound cards
*/
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 */
More information about the vlc-commits
mailing list