Skip to content

Commit

Permalink
fixed deprecated kAudioObjectPropertyElementMaster versus kAudioObjec…
Browse files Browse the repository at this point in the history
…tPropertyElementMain
  • Loading branch information
Bibiko authored and belangeo committed Feb 15, 2023
1 parent 8099441 commit e69c447
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine/ad_coreaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@

#include "ad_coreaudio.h"

#if !defined(MAC_OS_VERSION_12_0) || \
(MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_VERSION_12_0)
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
#endif

OSStatus coreaudio_input_callback(AudioDeviceID device, const AudioTimeStamp* inNow,
const AudioBufferList* inInputData,
const AudioTimeStamp* inInputTime,
Expand Down

0 comments on commit e69c447

Please sign in to comment.