Re: [Alsa-user] alsa buffer size

2007-09-01 Thread paul blakeley
With regard to the buffer size requiring more than x2 period size. If I understand ALSA correctly and to give you more understanding of my application. I require a large buffer of 2 seconds because the app that drives data to my application, via Ethernet UDP, can sometimes starve my application f

Re: [Alsa-user] alsa buffer size

2007-08-31 Thread Clemens Ladisch
paul blakeley wrote: > I have successfully increased the amount of buffer by writing a new value into > /proc/asound/cardX/pcm*/sub*/prealloc. > > For a mono .wav file I was able to successfully change this from 64 to > 512. I was really happy with this. I presume this value is in the > units of

Re: [Alsa-user] alsa buffer size

2007-08-31 Thread Clemens Ladisch
paul blakeley wrote: > I am writing an application that is generic enough to a number of > different drivers. If thats possible! I am trying to achieve a 2 > second of buffer for a number of different sample rates. This means > that for a sample rate of 44.1KHz I require a buffer size of 88.2K >

Re: [Alsa-user] alsa buffer size

2007-08-30 Thread paul blakeley
I have successfully increased the amount of buffer by writing a new value into /proc/asound/cardX/pcm*/sub*/prealloc. For a mono .wav file I was able to successfully change this from 64 to 512. I was really happy with this. I presume this value is in the units of kBytes? And that this value nee

Re: [Alsa-user] alsa buffer size

2007-08-30 Thread paul blakeley
Thanks for replying. I am writing an application that is generic enough to a number of different drivers. If thats possible! I am trying to achieve a 2 second of buffer for a number of different sample rates. This means that for a sample rate of 44.1KHz I require a buffer size of 88.2K frames!!

Re: [Alsa-user] alsa buffer size

2007-08-29 Thread Clemens Ladisch
paul blakeley wrote: > Is it possible to increase the buffer size of a ALSA driver? Yes. No. Er, maybe. Each driver has a certain limit for the buffer size. The ALSA framework preallocates memory for the buffer, but usually only half the limit. You can increase the amount by writing a new value

[Alsa-user] alsa buffer size

2007-08-29 Thread paul blakeley
Is it possible to increase the buffer size of a ALSA driver? Currently the driver I am using is limited to 16K frames. If it is possible how do I go about doing this? - This SF.net email is sponsored by: Splunk Inc. Still gre

Re: [Alsa-user] Alsa Buffer Size on Sound Card Intel Ac'97

2006-06-28 Thread Clemens Ladisch
Laborde Ludovic wrote: > Can you explain me, if it's possible for the sound card Intel AC'97 > ICH5/ICH5R to define a alsa buffersize up to 16384 bytes on (16 bits stereo) > ? Yes. Why do you ask? > Do you think that all functions, reflects the real bufferSize available > hardware ? or It de

[Alsa-user] Alsa Buffer Size on Sound Card Intel Ac'97

2006-06-28 Thread Laborde Ludovic
Hello everybody,       Can you explain me, if it's possible for the sound card Intel AC'97 ICH5/ICH5R to define a alsa buffersize up to 16384 bytes on (16 bits stereo) ? because, i using this functions :       if ((err = snd_pcm_hw_params_set_format (playbackHandle, playbackHardwareParams,