Plugin default and sw_params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have some questions about the /default/ plugin. I am developping a 
softphone based on ALSA on Ubuntu 7.10.
I use read/write IO. When I open a device with the /plughw /plugin, 
quite everything works fine, the quality sound is good. But with the 
/default/ plugin or the /dmix/ plugin ( the user can choose one of them 
), I can't set my own hw parameters or sw parameters. Actually  I set my 
own value of period size, buffer size, start threshold, stop threshold, 
but when I check in /proc/asound/cardx/pcm0p/sub0/sw_params or 
/proc/asound/cardx/pcm0p/sub0/hw_params, the values are totally 
different. For instance, the start threshold is set to 1 even if I set 
it to period_size. As a result, I get crackling sound. I suspect this is 
due to buffer underrun. Maybe if I could change the start threshold or 
the period size, the sound would be better. So my question: is it 
possible to modify this values for /default/ plugin without changing the 
alsa config file ( asoundrc ) ?

Thank you very much

Manu

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux