Re: [AD] little bug

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


Ok, looks like I fixed it. :D
I just modified some things here and there, added some safe checks and in
case why you wonder I specified the buf_b and size_b as NULL, I used this
quote of the directx docs for the lock function, in the remarks section:

"If the application passes NULL for the ppvAudioPtr2 and pdwAudioBytes2
parameters, the lock extends no further than the end of the buffer and does
not wrap." <- that is what allegro exactly wants

Basically I just made it a bit more error safe.

Tested by a person having the problem and the input doesn't hang anymore for
him :)
Probably this could also fix some audigy problems Henrik xxx (I don't
remember the surname exactly sorry) was reporting long ago.

Anyway, here is the patch, tested with the digitest program as well.
It both makes it more stable and adds the GLOBAL_FOCUS fix first mentioned
in the very first little bug mail.

> > Btw, just to let you know, regarding the choppy input related to sound,
> > seems like if you use the allegro mixer it doesn't happen
> > I'll look into that
>
> Thanks, you're obviously the specialist of the subject

Attachment: wdsound.c.dif
Description: Binary data



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