Skip to content

Commit c16f9a9

Browse files
nandahkrishnaCarterLi
authored andcommitted
sound_apple.c: handle kAudioObjectPropertyElementMain for macOS < 12
1 parent 74b1871 commit c16f9a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/detection/sound/sound_apple.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#include "util/apple/cf_helpers.h"
33

44
#include <CoreAudio/CoreAudio.h>
5+
#include <AvailabilityMacros.h>
6+
7+
#ifndef MAC_OS_VERSION_12_0
8+
#define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
9+
#endif
510

611
const char* ffDetectSound(FF_MAYBE_UNUSED const FFinstance* instance, FFlist* devices /* List of FFSoundDevice */)
712
{

0 commit comments

Comments
 (0)