-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audioIn crashing when exiting app #11
Comments
Do you know which line causes the error? If you comment or turn off the audio analyzer does it work ok? |
It happens after I call audioAnalyzer.exit(); |
Does this error happen also running rmsInput example? |
Ok, I´ll check it out. |
If you comment |
Good point! If I skip |
Could it be the essentia::shutdown(), that creates the problem? |
If I had to guess, it seems that the audioAnalyzer.analyze() function is called once again after the analyzer has exit. It shouldn't because the soundStream is supposed to be stopped. |
It only happens when I use the audio input. What happens if you exit without deleting all algorithms and stopping essentia? |
It seems there's something wrong with the soundStream audioIn thread: Not really stopping. There shouldn't be a problem since you´re closing the app. The other workaround if to add some buffer check to the audioIn, something like: |
The compiler doesn't let me treat |
Oh, right, I would have to check to ofSoundBuffer reference. But could be something like |
hmmmm... I tried
Unfortunately |
Hi!
My app is sometimes crashing when exiting the application in the com.apple.audio.IOThread.client;
Apparently the rtStreamPtr pointer is already null;
-> rtStreamPtr->soundInputPtr->audioIn(rtStreamPtr->inputBuffer);
Before exiting the app I call the functions:
ofSoundStreamStop();
audioAnalyzer.exit();
But it still crashes every two times. The inconsistency makes me think it can be a multithread issue, but I don't know where else should I call it.
Any thoughts?
Imanol
The text was updated successfully, but these errors were encountered: