All pastes #934201 Raw Edit

Someone

public text v1 · immutable
#934201 ·published 2008-03-08 18:12 UTC
rendered paste body
Index: libs/libmyth/audiooutputalsa.cpp
===================================================================
--- libs/libmyth/audiooutputalsa.cpp    (revision 16458)
+++ libs/libmyth/audiooutputalsa.cpp    (working copy)
@@ -89,9 +89,8 @@
     }
     else
     {
-        fragment_size =
-            (audio_bits * audio_channels * audio_samplerate) / (8*30);
-        buffer_time = 100000;
+        fragment_size = 6144; // nicely divisible by 2,4,6,8 channels @ 16-bits
+        buffer_time = 500000; // 500 ms
         period_time = buffer_time / 4;  // 4 interrupts per buffer
     }