On Wednesday 04 March 2009 6:47:17 am jviklaus wrote:
> Hello everyone,
> I went to search a bit more on this, and found that an infinite loop with
> no pause is done in the file alsa.c of the library,
> within the function :
> static ALuint ALSANoMMapProc(ALvoid *ptr);
It actually does pause. The snd_pcm_writei function will block until all the
given audio data is written to the card, which can only happen at a defined
speed (the playback frequency/sample rate).
> this function watches if a new sound has arrived and sent it to the alsa
> layer,
> the fact is even if there is nothing to play the loop is running,
> so it requires a lot of memory..
> Is this normal ?
Yes, that behavior's normal. Even if no sources are playing, something still
needs to be written to the sound card (usually silence).
However it taking up 20% CPU, while not doing anything, isn't normal. What
kind of CPU do you have? Also, what sound card, and are you using pulseaudio?
Are you doing anything else in the app that could be taking up that much?
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel