mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-10 06:34:22 +00:00
488ed16dfc
Issue #276 reported a segfault that occurred while BGMApp was launching. It was caused by BGM_PlayThrough's output IOProc when it tried to read from the ring buffer. I haven't been able to reproduce the problem, so I don't know whether this commit will actually fix it. Hopefully it will at least make it easier to diagnose. This commit adds locking around accesses to the buffer so that the IOProcs will skip the current IO cycle if it isn't safe to use the ring buffer. That should only happen during launch or when changing the output device. (And only if something else has gone wrong.) |
||
---|---|---|
.. | ||
BGMApp | ||
BGMApp.xcodeproj | ||
BGMAppTests | ||
BGMXPCHelper | ||
BGMXPCHelperTests | ||
OptimizationProfiles | ||
PublicUtility | ||
BGMThreadSafetyAnalysis.h |