summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2011-05-12 04:59:02 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2011-05-12 04:59:02 (GMT)
commit8119784308f9d56875a050a2d4b6e9d600d3fce3 (patch)
tree2e1ca6a4b5aeb26f340bdfae44faed4b5ce5e1fa
parent50322869c8bd2ccfdacfabfe916ef52b8566cd23 (diff)
Fix occasional audio corruption
Backport SHA:9357aaf826603f778d957b60f55b2d62fc0b4cda
-rw-r--r--mythtv/libs/libmyth/audiooutputalsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/audiooutputalsa.cpp b/mythtv/libs/libmyth/audiooutputalsa.cpp
index 1d3c71f..854293c 100644
--- a/mythtv/libs/libmyth/audiooutputalsa.cpp
+++ b/mythtv/libs/libmyth/audiooutputalsa.cpp
@@ -426,7 +426,7 @@ bool AudioOutputALSA::OpenDevice()
}
buffer_time = 500000; // buffer 0.5s worth of samples
- period_time = 16; // aim for an interrupt every (1/16th of buffer_time)
+ period_time = 4; // aim for an interrupt every (1/4th of buffer_time)
err = SetParameters(pcm_handle, format, channels, samplerate,
buffer_time, period_time);