Return early if render resources already deallocated#34
Return early if render resources already deallocated#34jcavar wants to merge 2 commits intoAudioKit:mainfrom
Conversation
|
@jcavar I do prefer your method using an AUAudioUnit internal state, but I'm not sure if In this repo https://github.com/NickCulbertson/AUTests_iOS26 if you unload an engine that was playing, it calls The issue I was seeing with crashes only occurred when calling |
This fixes the crash in macOS and iOS 26.
|
Great catch @NickCulbertson, I've updated the code to take a snapshot of |
|
Yes, this appears to be working correctly now! 🙌 It's ready for @aure or @wtholliday review. |
|
I guess those 18 test failures are just other stuff? Maybe fix those first? |
These md5's were recorded at 44100, but Settings default sample rate changed to 48000
These failures are due to the default sample rate change in |
This fixes the crash in macOS and iOS 26. This is the same fix @NickCulbertson did in his branch, just without manual flag management.
It seems like the engine should perform this check internally and not invoke
deallocateRenderResourceswhen not needed, but this also feels like low risk change to protect against buggy host.Resolves: #33