Main: run the OS X native event loop

This commit is contained in:
nanotech
2014-10-10 19:20:53 +02:00
committed by Max Kellermann
parent bb922d577d
commit f0be48ff90
5 changed files with 52 additions and 0 deletions

View File

@@ -75,4 +75,15 @@ win32_app_stopping(void);
#endif
#ifdef __APPLE__
/* Runs the OS X native event loop in the main thread, and runs
* mpd_main on a new thread. This lets CoreAudio receive route
* change notifications (e.g. plugging or unplugging headphones).
* All hardware output on OS X ultimately uses CoreAudio internally.
*/
int osx_main(int argc, char *argv[]);
#endif
#endif