thestk / rtaudio

A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO, and WASAPI) operating systems.
Other
1.49k stars 318 forks source link

macOS 10.15 - undeclared identifier 'kAudioObjectPropertyElementMain' #355

Closed fferri closed 2 years ago

fferri commented 2 years ago

Trying to build latest rtaudio from git on macOS 10.15.7.

I get this error:

/Users/me/Dev/rtaudio-test/external/rtaudio/RtAudio.cpp:596:43: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'? KAUDIOOBJECTPROPERTYELEMENT }; ^~~~~~~ kAudioObjectPropertyElementName /Users/me/Dev/rtaudio-test/external/rtaudio/RtAudio.cpp:583:39: note: expanded from macro 'KAUDIOOBJECTPROPERTYELEMENT'

define KAUDIOOBJECTPROPERTYELEMENT kAudioObjectPropertyElementMain

                                  ^

I have to either:

Possibly related to #351 and/or #345

garyscavone commented 2 years ago

I am closing this, as I haven't seen other reported problems and it works fine on my system (though I don't use cmake). If there needs to be a build system fix, please submit a PR.