Re: [AD] Alsa driver hogs CPU

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, 2003-12-20 at 08:43, Thomas Fjellstrom wrote:
> Then again, I've seen lots of problems appear when using the alsa drivers, 
> corrupted audio, just plain bad drivers, etc... Does this happen when using 
> the OSS emulation of ALSA? if so, then its likely ALSA's fault, otherwise, 
> probably my alsa driver code ;)
> 

OSS is the ALSA emulation, yes. I couldn't see any other apparent
problems yet - but I guess, it will cause programs to slow down quite a
bit, especially on slower machines. I added a for loop to my test
program doing just 10 million sin() and cos() calls:

It takes about 5 seconds with ALSA, 2 seconds with OSS and ESD. All
without any sound being played. So - if a game can run 30 FPS with OSS -
it would drop more than half with ALSA.

Does anyone else see this? If not, I take it there's some weird problem
with my kernel. I'll try upgrading to 2.6.0 in the next days anyway,
which then might resolve it (and they have ALSA built in there now).

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/