Reputation: 151
this is my code for generating noise using Audio Queue:
The problem is that my code generates an EXC_BAD_ACCESS. The problem seems to be in the assignment
MAAudioManager *audioMngr = (__bridge MAAudioManager *) inUserData;
in the callback routine. I suspect that could be something related to the access by the thread of the class MAAudioManager.
Any idea?
Upvotes: 0
Views: 413
Reputation: 16448
Is there anything elsewhere in the program that retains the MAAudioManager
instance? It looks like it's been dealloc'd by the time that the callback gets called.
Upvotes: 1