Hi guys,

I've got a question that I haven't been able to conclusively answer, and
I was wondering if someone could shed some light on an answer.

When a buffer underrun occurs, what happens to that instance of the
callback thread?

To elaborate, consider a case where the soundcard has requested audio,
so the PA callback function gets called and your program runs off and
processes whatever audio it has to as quickly as it can. If your program
can't process quickly enough, what happens exactly? Does the initial
callback thread get killed, and another one started immediately after?
Does another callback thread simply get called?

The reason this concerns me is because if the callback thread gets
killed (if that's what happens during a buffer underrun) while it is
waiting on a mutex, I'm afraid it could leave the mutex in some
undetermined state, deadlocking my application.

If anyone could offer any advice or insight, it would be much
appreciated.

Thanks,
Albert


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to