BackgroundMusic/BGMApp/BGMAppTests
Kyle Neideck 488ed16dfc
Hopefully fix a segfault caused by BGM_PlayThrough.
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.)
2020-04-18 22:00:49 +10:00
..
NullAudio Install NullAudio driver before tests run on Travis. 2016-05-11 10:02:31 +10:00
UITests Add optional debug logging in release builds. 2020-01-24 08:07:34 +11:00
UnitTests Hopefully fix a segfault caused by BGM_PlayThrough. 2020-04-18 22:00:49 +10:00