I have a play along app that is built on top of AudioQueues.
Now I want to add a 4 beat count in before the song begins. (tick, tick, tick,
tock, play)
Seems like it should be fairly easy
set up the AudioQueues
set up System Sound to play tick
While ( count < 4 ) {
Play
system sound
[NSThread
sleepUntilDate:my date ]
}
AudioSessionSetActive ( true )
Start AudioQueue
I hear the system sound play as expected. How ever just
after the AudioQueue start call I get a “exc_bad_access”
Looking at the stack in the debugger is not very helpful.
Objc_msgSend
NSPopAutoreleasePool
_UIAppplicationHandleEvent
SendEvent
PurpleEventTimerCallBack
CFRunLoopRunSpecific
CFRunLoopRunInMode
GSEventRun
-[UIApplication _run]
main
Any idea how I can track this bug down?
Is there a better way to implement this functionality?
Thanks
Andy
Replace Ads with your Stuff! Learn how @ www.prowebsurfer.com