[mythtv] [mythtv-commits] Ticket #4764: alsa buffer problem introducedin 15893
Mark Spieth
mark at digivation.com.au
Fri Mar 7 21:46:20 UTC 2008
> tested t4764.diff, but I will as soon as possible. Though 128000
> (=32000*4) is still quite close to 100000 (which was too small).
>
> Digital spdif out doesn't work for me until i changed:
>
> buffer_time = 32000 * 4; // in usec
>
> to
>
> buffer_time = 32000 * 16; // in usec
>
> Even a setting of 8 was to small.
ok looks like spdif needs above 400ms.
does the following work for everyone?
period_time = (audio_passthru)?125:32; // fragment period in ms,
for transparency
fragment_size = (audio_bits * audio_channels * audio_samplerate *
period_time) / 8000;
period_time *= 1000; // convert to usec, fragment time for 4
interrupts per buffer
buffer_time = period_time * 4; // in usec
it would be nice if there werent so many variations in alsa drivers.
mark
More information about the mythtv-dev
mailing list