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
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
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
>
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
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!!
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
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
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
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,