[mythtv] [mythtv-commits] Ticket #4764: alsa buffer problem introducedin 15893

Mark Spieth mark at digivation.com.au
Tue Mar 4 05:04:53 UTC 2008


>A couple of people on the -users list tried some different values (but
>unfortunately posted there, rather than here.  Just sending a link in
>case you missed their posts:
>http://www.gossamer-threads.com/lists/mythtv/users/319589#319589 .
>

that is very helpful. I found the calc for fragmentsize was wrong. try 
replacing those lines with the following.
still not sure how important 6144 is but thats the number you will now get 
if the sample rate is 48000. (and should have got previously.)

        fragment_size = (audio_bits * audio_channels * audio_samplerate * 
32) / 8000;
        buffer_time = 32000 * 4;    // in usec

at 32k rate, the frag size becomes 4096 which is also a nice number.

cheers
mark. 



More information about the mythtv-dev mailing list