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.
This commit is contained in:
Kamal Mostafa 2012-10-01 14:30:00 -07:00
parent 99c4b526af
commit b97aeb0778
1 changed files with 2 additions and 2 deletions

View File

@ -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;