* Plugin default and sw_params
@ 2008-03-26 13:38 Emmanuel Milou
0 siblings, 0 replies; only message in thread
From: Emmanuel Milou @ 2008-03-26 13:38 UTC (permalink / raw)
To: alsa-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-26 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 13:38 Plugin default and sw_params Emmanuel Milou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox