Thanks for your help so far Jaroslav.

I have taken another look at my project and now it's behaving differently! It still won't go down to a period size of 128.

I have downloaded the example sine wave generator. It works with the default settings, which give a period size of 4410. If I change the period time using the command line, it will successfully go down to 441/10000us. Any further and I get this error:

ALSA lib pcm.c:824:(snd_pcm_sw_params) snd_pcm_sw_params: params->avail_min problem for start_threshold
Unable to set sw params for playback: Invalid argument
Setting of swparams failed: Invalid argument



On 01/04/2004, at 4:52 PM, Jaroslav Kysela wrote:


On Thu, 1 Apr 2004, Tim Hollingsworth wrote:

You can read/write any size.

well I can't write at 128. the question is, do I need to buffer the periods myself and sequence them into larger periods or will alsa do this for me?

The you have wrong sw_params settings. Check xfer_align.


Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to