Open sleep9 opened 1 year ago
AudioQueueStart was returning OSStatus -50.
Adding the following code to prepareRealtime solves the issue
AVAudioSession * session = [AVAudioSession sharedInstance]; if (!session) printf("ERROR INITIALIZING AUDIO SESSION! \n"); else{ [session setCategory:AVAudioSessionCategoryPlayAndRecord error:&nsError]; [session setActive:YES error:&nsError]; }
However now when I run the application I get a constant stream of gibberish detection. Any ideas? Im not sure if Its hallucinating or the buffer is polluted with data from somewhere else.
Has anybody solved this yet?
AudioQueueStart was returning OSStatus -50.
Adding the following code to prepareRealtime solves the issue
However now when I run the application I get a constant stream of gibberish detection. Any ideas? Im not sure if Its hallucinating or the buffer is polluted with data from somewhere else.