Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions audio_switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ OTHER DEALINGS IN THE SOFTWARE.
#include <CoreServices/CoreServices.h>
#include <CoreAudio/CoreAudio.h>
#include <CoreAudio/AudioHardware.h>
#include <AvailabilityMacros.h>
#ifndef MAC_OS_X_VERSION_10_8 // fallbacks for < 10.8
#define kAudioObjectPropertyScopeInput kAudioDevicePropertyScopeInput
#define kAudioObjectPropertyScopeOutput kAudioDevicePropertyScopeOutput
#else
#include <CoreAudio/AudioHardwareBase.h>
#endif

#ifndef kAudioObjectPropertyElementMain
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
#endif

typedef enum {
kAudioTypeUnknown = 0,
Expand Down