diff options
author | nanotech <nanotech@nanotechcorp.net> | 2014-10-10 19:20:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-10 19:51:44 +0200 |
commit | f0be48ff90503d9ffa5b295fd4454eec753950ee (patch) | |
tree | c87081479266501d3842709b8956a48649238541 /src/Main.hxx | |
parent | bb922d577dd8dc484d25c29c7c85bf04ecd62256 (diff) | |
download | mpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.tar.gz mpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.tar.xz mpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.zip |
Main: run the OS X native event loop
Diffstat (limited to '')
-rw-r--r-- | src/Main.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Main.hxx b/src/Main.hxx index 7e3fecd0b..dae7a5043 100644 --- a/src/Main.hxx +++ b/src/Main.hxx @@ -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 |