diff --git a/audio_switch.h b/audio_switch.h index 4d19cb9..098c91f 100644 --- a/audio_switch.h +++ b/audio_switch.h @@ -33,8 +33,17 @@ OTHER DEALINGS IN THE SOFTWARE. #include #include #include +#include +#ifndef MAC_OS_X_VERSION_10_8 // fallbacks for < 10.8 +#define kAudioObjectPropertyScopeInput kAudioDevicePropertyScopeInput +#define kAudioObjectPropertyScopeOutput kAudioDevicePropertyScopeOutput +#else #include +#endif +#ifndef kAudioObjectPropertyElementMain +#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster +#endif typedef enum { kAudioTypeUnknown = 0,