aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_osx_run_loop.h
diff options
context:
space:
mode:
authorAustin Hicks <[email protected]>2014-09-19 21:09:07 -0400
committerAustin Hicks <[email protected]>2014-09-19 21:09:07 -0400
commit4b52d907a1225cd16a68e501437fddf480544581 (patch)
tree56e79b4b8a0dbd0c48b28b17f604c9da94786472 /src/cubeb_osx_run_loop.h
parent5782da743c36706713f81ef1861bbd662b9d17c6 (diff)
downloadcubeb-4b52d907a1225cd16a68e501437fddf480544581.tar.gz
cubeb-4b52d907a1225cd16a68e501437fddf480544581.zip
Brought in missing files from the Mozilla version
Diffstat (limited to 'src/cubeb_osx_run_loop.h')
-rwxr-xr-xsrc/cubeb_osx_run_loop.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cubeb_osx_run_loop.h b/src/cubeb_osx_run_loop.h
new file mode 100755
index 0000000..cb034b5
--- /dev/null
+++ b/src/cubeb_osx_run_loop.h
@@ -0,0 +1,14 @@
+/*
+ * Copyright © 2014 Mozilla Foundation
+ *
+ * This program is made available under an ISC-style license. See the
+ * accompanying file LICENSE for details.
+ */
+
+/* On OSX 10.6 and after, the notification callbacks from the audio hardware are
+ * called on the main thread. Setting the kAudioHardwarePropertyRunLoop property
+ * to null tells the OSX to use a separate thread for that.
+ *
+ * This has to be called only once per process, so it is in a separate header
+ * for easy integration in other code bases. */
+void cubeb_set_coreaudio_notification_runloop();