[alsa-devel] underruns and strange code in pcm_rate.c

Stas Sergeev stsp at aknet.ru
Fri Nov 9 19:17:44 CET 2007


Timur Tabi wrote:
>> For example, set
>>    slave.periods 3
>>    slave.period_size 4096
>> then you'll hear the improvement, I guess.
> Can someone tell me exactly where I'm supposed to put those two lines?
/etc/asound.conf for instance, or ~/.asoundrc
Like this:
pcm.swmix {
    type dmix
    ipc_key 1111
    slave.pcm "hw:0,0"
    slave.periods 3
    slave.period_size 4096

Also change the "default" to use it,
like this:
pcm.!default {
    type plug
    slave.pcm "swmix"
(that's also where "rate" gets into play -
"plug" may use it)

More information about the Alsa-devel mailing list