sbooth / CAAudioHardware

The Swift-friendly Core Audio HAL
MIT License
4 stars 1 forks source link

Not compatible with Swift 6 strict concurrency #21

Open sbooth opened 3 months ago

sbooth commented 3 months ago

The thread-safety of the various AudioObject APIs isn't clear. Lacking documentation to the contrary I assume they aren't thread-safe, which means that the current design for AudioSystemObject needs to be revisited.

https://www.mail-archive.com/coreaudio-api@lists.apple.com/msg01860.html https://developer.apple.com/forums/thread/758022

Additionally, the accesses in AudioObject to propertyListeners are not thread-safe.

sbooth commented 2 months ago

60 has been merged and fixes the propertyListeners access issue.