From b97aeb0778393edb025baa51fdf20af3d4632d7a Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Mon, 1 Oct 2012 14:30:00 -0700 Subject: [PATCH] simpleaudio-pulse: fix intermittent --tx noise For some unknown reason setting attr.prebuf=1 causes horrible noise for some playback sessions, so don't do that. --- src/simpleaudio-pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simpleaudio-pulse.c b/src/simpleaudio-pulse.c index 25941c1..93aacae 100644 --- a/src/simpleaudio-pulse.c +++ b/src/simpleaudio-pulse.c @@ -122,9 +122,9 @@ sa_pulse_open_stream( }; attr.fragsize = 0; /* set for lowest possible capture latency */ - - attr.prebuf = 1; /* do not start stream until data available*/ attr.tlength = 0; /* set lowest possible playback latency */ + // Do not mess with attr.prebuf! Setting it =1 causes some playback (--tx) + // sessions to be wiped out by noise (I do not know why). /* Create the playback or recording stream */ pa_simple *s;