AudioUnitReset during a render
AudioUnitReset during a render
- Subject: AudioUnitReset during a render
- From: Ricci Adams via Coreaudio-api <email@hidden>
- Date: Sat, 07 May 2022 22:35:51 -0000
Hello all!
I develop an audio player application and am encountering a crash with an audio plug-in from a different developer.
My question is:
May AudioUnitReset() be called in the main thread (in response to a seek event) while an audio unit is processing audio in the render thread?
From my understanding, -[AUAudioUnit reset] and AudioUnitReset() are only suppose to clear memory and not perform any type of resource allocation (that's the role of AudioUnitInitialize/AudioUnitUninitialize). Hence, a reset while audio is playing may cause a audible glitch, it shouldn't crash the application.
That said, the documentation also mentions that "typically, this call is made when an audio unit was previously rendering, and was taken out of the render chain" – implying that normally a unit wouldn't be rendering when reset is called.
Thank you for any insight into this issue.
Ricci Adams
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden