Re: [AD] [BUG?] X11 Windowed driver delay...

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


On February 18, 2004 03:23 pm, Elias Pschernig wrote:
> On Sat, 2004-02-14 at 22:26, Thomas Fjellstrom wrote:
> > I really don't get whats wrong with that driver.. Especially with the
> > patch I gave to you applied... Its very similar to some alsa code I used
> > in a little library I wrote for playing audio.. though the whole thing
> > runs in a thread, so maybe thats why it maybe at max uses 3% cpu? (more
> > if the DUMB plugin is in use ;) possibly LOTS more ;)) hmm.. seems I also
> > skip setting a few of the hw parameters.. I wonder if that has anything
> > to do with it.
>
> Just tried the patch (the one which uses wait_for_poll inside
> alsa_update, right? i found it in my dcc folder..), and no (noticeable
> at least, only looked at the half-full CPU-usage applet) change for me.
> Also compiling allegro with --disable-pthreads does give no change.

I'm starting to suspect the different ALSA hardware drivers all behave 
differently... And the only way to get around this is to not use alsa's plain 
"write" interface... Something with shared mem, callbacks, or whatever will 
probably work better with allegro.

I really don't know anymore.. It was a pain to grep through ALSAs 
"documentation", and through various headers...

I've had as much fun playing with ALSAs api as I've had playing with TCL in 
eggdrop bots... (not fun at all.)

> --
> Elias Pschernig <elias@xxxxxxxxxx>


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net





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