diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-21 10:44:11 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-21 10:59:17 -0800 |
commit | 510744444329170f702d31d43997a6bbc1591b44 (patch) | |
tree | e7523571321c517987a6374c1cc0c28f063a8710 | |
parent | d7ee76f9dd84da05b59591a971b96bf990136767 (diff) |
XQuartz: Resurrect the old audio path for Tiger
(cherry picked from commit a61a8d9047e8765faf3892f4f2148c8553fd192c)
-rw-r--r-- | hw/xquartz/quartzAudio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xquartz/quartzAudio.c b/hw/xquartz/quartzAudio.c index ac9f8205c..21232665a 100644 --- a/hw/xquartz/quartzAudio.c +++ b/hw/xquartz/quartzAudio.c @@ -47,6 +47,7 @@ #include <CoreAudio/CoreAudio.h> #include <pthread.h> +#include <AvailabilityMacros.h> #include "inputstr.h" #include <X11/extensions/XI.h> @@ -337,8 +338,12 @@ void QuartzAudioInit(void) // fixme assert fadeLength<framesPerBuffer // Prepare for playback +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 AudioDeviceIOProcID sInputIOProcID = NULL; status = AudioDeviceCreateIOProcID( outputDevice, QuartzAudioIOProc, &data, &sInputIOProcID ); +#else + status = AudioDeviceAddIOProc(outputDevice, QuartzAudioIOProc, &data); +#endif if (status) { ErrorF("QuartzAudioInit: AddIOProc returned %ld\n", (long)status); return; |