SDL Alsa and CPU load

Hi SDL Gurus [?],

I have just compiled and installed SDL 1.2.14 on my ubuntu 9.04 machine.
Then i rebuild my emulator with the
new library. Every thing runs fine except that the emulator take 100% of the
CPU time. I also notice one buffer
underrun warning coming from ALSA layer. After research, i noticed that
everything runs as before if i disable
ALSA with the ./configure : ./configure --enable-alsa=NO. There is no
problem when SDL is using OSS for sound
system, the cpu load is around 15%.

Here is my question : Is it a know bug or is it a (feature?) normal thing,
because ALSA is doing very accurate polling
to limit latency or something else ? Has anyone ever had the same problem ?

Regards
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: image/gif
Size: 96 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091026/0e34a29d/attachment.gif

What’s the output with the environment variable SDL_AUDIO_ALSA_DEBUG=1 ?On Mon, Oct 26, 2009 at 10:42 AM, GrosBob LeBlanc < grosbobleblanc.sdl at gmail.com> wrote:

Hi SDL Gurus [?],

I have just compiled and installed SDL 1.2.14 on my ubuntu 9.04 machine.
Then i rebuild my emulator with the
new library. Every thing runs fine except that the emulator take 100% of
the CPU time. I also notice one buffer
underrun warning coming from ALSA layer. After research, i noticed that
everything runs as before if i disable
ALSA with the ./configure : ./configure --enable-alsa=NO. There is no
problem when SDL is using OSS for sound
system, the cpu load is around 15%.

Here is my question : Is it a know bug or is it a (feature?) normal thing,
because ALSA is doing very accurate polling
to limit latency or something else ? Has anyone ever had the same problem ?

Regards


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: image/gif
Size: 96 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091026/3f45bd6f/attachment.gif