[vlc-commits] pulseaudio: increase buffer so some usb cards don't drop samples
R.M
git at videolan.org
Mon Mar 14 21:33:08 CET 2011
vlc/vlc-1.1 | branch: master | R.M <rafalm23 at tkdami.net> | Wed Mar 9 11:26:00 2011 +0200| [11c5049fc8f312d0f052d53581d68bbcc6d8c065] | committer: Ilkka Ollakka
pulseaudio: increase buffer so some usb cards don't drop samples
Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>
(cherry picked from commit 7aaf63551d1e87d3219acd5a3cec1fa25250bfe3)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=11c5049fc8f312d0f052d53581d68bbcc6d8c065
---
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 4d4fd07..e413c86 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -196,14 +196,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