Re: [Alsa-devel] period size
On Fri, 2 Apr 2004, Tim Hollingsworth wrote: 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/1us. 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 Fixed in CVS. 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=1470alloc_id=3638op=click ___ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel
[Alsa-devel] period size
Hi I am trying to write a pcm app which receives sound over the network and outputs it through the speakers. The network protocol is udp. From what I can tell, each packet is a single period with interleaved channels. My problem is that the period size appears to be below the minimum that my hardware will go. For example: rate: 48000 Hz channels: 2 packet size:512 bytes sample size:16 bit ok so far... (correct me if I'm wrong) period size = (packet size * 8) / (channels * sample size) = (512 * 8) / (16 * 2) = 128 buffer size = (whatever i like...? latency/network stability...?) When I try to set the period size exactly I get an error. If I set the period size near I get 192. How do I make this work? Should I reconfigure the network sound source? Do I put the packets together into larger periods? Can alsa do this for me? cheers Tim --- 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=1470alloc_id=3638op=click ___ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel
Re: [Alsa-devel] period size
On Tue, 30 Mar 2004, Tim Hollingsworth wrote: Hi I am trying to write a pcm app which receives sound over the network and outputs it through the speakers. The network protocol is udp. From what I can tell, each packet is a single period with interleaved channels. My problem is that the period size appears to be below the minimum that my hardware will go. For example: rate: 48000 Hz channels: 2 packet size: 512 bytes sample size: 16 bit ok so far... (correct me if I'm wrong) period size = (packet size * 8) / (channels * sample size) = (512 * 8) / (16 * 2) = 128 buffer size = (whatever i like...? latency/network stability...?) When I try to set the period size exactly I get an error. If I set the period size near I get 192. How do I make this work? Should I Your hardware (probably emu10k1 or audigy) does not support this period size for capture. reconfigure the network sound source? Do I put the packets together into larger periods? Can alsa do this for me? You can read/write any size. 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=1470alloc_id=3638op=click ___ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel
[Alsa-devel] Period Size in ymf724
Hi all, We tried using a ymf724 pci sound card and observed that the minimum period size we can get is 944 bytes.( with -F switch of aplay). We had tried the same switch of aplay with a cmipci card and the minimum period size we could get was about only 64 bytes. Basically, we are trying this 'cos we want the card to raise interrupts as frequently as possible. Is this a h/w limitation of ymf724 card or is there any way we can get to reduce the period size on a ymf724 card to around 64 bytes ? Thanx in advance, Shaju Abraham --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel