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

clang13 warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] #345

Closed shemeshg closed 2 years ago

shemeshg commented 2 years ago

on Clang12 it is with no warning - it is ok, Only Clang13 MacOS

However it does compile successfully, so probably it is ok... It might be a politically correct thing of:

-        kAudioObjectPropertyElementMaster
+        kAudioObjectPropertyElementMain

Here is the log

[proc] Executing command: /usr/local/bin/cmake --build /Volumes/RAM_Disk_2G/cpp/build --config Debug --target all -j 6 --
[build] [ 25%] Building CXX object RtAudioLib/CMakeFiles/RtAudioLib.dir/RtAudio.cpp.o
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:574:43: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]                                           kAudioObjectPropertyElementMaster };
[build]                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                           kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:595:114: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]   AudioObjectPropertyAddress propertyAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
[build]                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                                                                                                  kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:613:118: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]   AudioObjectPropertyAddress property = { kAudioHardwarePropertyDefaultInputDevice, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
[build]                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                                                                                                      kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:646:119: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]   AudioObjectPropertyAddress property = { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
[build]                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                                                                                                       kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:695:43: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]                                           kAudioObjectPropertyElementMaster };
[build]                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                           kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:996:43: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]                                           kAudioObjectPropertyElementMaster };
[build]                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]                                           kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:1490:9: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]         kAudioObjectPropertyElementMaster };
[build]         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]         kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] /Volumes/RAM_Disk_2G/cpp/RtAudioLib/RtAudio.cpp:1525:9: warning: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
[build]         kAudioObjectPropertyElementMaster };
[build]         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build]         kAudioObjectPropertyElementMain
[build] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: note: 'kAudioObjectPropertyElementMaster' has been explicitly marked deprecated here
[build]     kAudioObjectPropertyElementMaster API_DEPRECATED_WITH_REPLACEMENT("kAudioObjectPropertyElementMain", macos(10.0, 12.0), ios(2.0, 15.0), watchos(1.0, 8.0), tvos(9.0, 15.0)) = kAudioObjectPropertyElementMain
[build]     ^
[build] 8 warnings generated.
[build] [ 50%] Linking CXX static library libRtAudioLib.a
garyscavone commented 2 years ago

Thanks ... I just updated that.