All pastes #754179 Raw Edit

Untitled

public text v1 · immutable
#754179 ·published 2007-10-29 21:00 UTC
rendered paste body
Oct 15 17:41:03 <NerveGas>	were you still using kCFRunLoopCommonModes ?
Oct 15 17:41:13 <NerveGas>	and CFRunLoopGetCurrent ?
Oct 15 17:41:15 <KaKaRoTo>	yes
Oct 15 17:41:20 <NerveGas>	what i did
Oct 15 17:41:31 <NerveGas>	was change that to NULL, which tells AudioQueue to call the callback whenever it needs data
Oct 15 17:41:35 <NerveGas>	instead of telling it when i have data
Oct 15 17:41:40 <NerveGas>	and all my cutting out problems disappeared
Oct 15 17:42:01 <NerveGas>	    @param      inCallbackRunLoop
Oct 15 17:42:01 <NerveGas>	        The event loop on which inCallbackProc is to be called. If you specify NULL, the
Oct 15 17:42:01 <NerveGas>	        callback is called on one of the audio queue's internal threads.
Oct 15 17:42:23 <KaKaRoTo>	hehe, I see
Oct 15 17:42:50 <KaKaRoTo>	instead of waiting for the bus message to go from one thread to another.. you just get your code to execute in audio queu's thread
Oct 15 17:42:51 <KaKaRoTo>	nice
Oct 15 17:42:56 <NerveGas>	the problem wasn't the queue... it was that my CPU was so busy that i wasn't making the loop call enough, so it died
Oct 15 17:43:11 <NerveGas>	right
Oct 15 17:44:56 <KaKaRoTo>	I see..