mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-29 23:40:30 +00:00
33b6b17115
The BGMApp project now builds an XPC service bundle called BGMXPCHelper, which vends a Mach service that BGMApp and BGMDriver can use to communicate. This will hopefully be useful for some of the tasks HAL notifications aren't suited to. In this commit, BGMDriver uses the XPC helper when starting IO, to wait until BGMApp is ready for playthrough. BGMApp can only start playthrough when the output hardware is ready for IO. BGMDriver can now tell the HAL when we're ready for IO, which means we don't have to keep the output hardware running all the time (or drop frames or increase latency). The end result is that playthrough doesn't waste CPU time while idle any more. This also means that now playthrough won't prevent the system from sleeping when idle. |
||
---|---|---|
.. | ||
BGM_TestUtils.h | ||
BGM_Types.h | ||
BGM_Utils.h | ||
BGMXPCProtocols.h |