BackgroundMusic/BGMDriver/BGMDriverTests
Kyle Neideck 59e70fb9d1
Set the OS default audio device back if BGMApp exits abnormally.
This is mostly so BGMApp won't leave BGMDevice as the default if BGMApp
crashes, which would stop audio from playing until the user changed the
default device themselves. Also handles SIGINT, SIGTERM and SIGQUIT.

For crashes where the BGMApp process may be in an unknown state, e.g.
segfaults, BGMXPCHelper handles changing the default device.

Should fix the Travis Xcode 9 build, which is currently failing because
the AppleScript we use to quit BGMApp in .travis.yml gets "user
cancelled" for some reason.

Also makes some minor improvements to the reports generated by
CrashReporter. The way CrashReporter works with Background Music should
otherwise be unchanged.
2017-10-23 20:19:42 +11:00
..
BGM_ClientMapTests.mm Initial commit 2016-02-19 16:25:34 +11:00
BGM_ClientsTests.mm Ignore UI sounds when auto-pausing. 2017-07-30 18:16:25 +10:00
BGM_DeviceTests.mm Set the OS default audio device back if BGMApp exits abnormally. 2017-10-23 20:19:42 +11:00
Info.plist Initial commit 2016-02-19 16:25:34 +11:00