On Wed May 3 07:58:46 2023 +0000, Davide Beatrici wrote:
In file included from ../dlls/winecoreaudio.drv/coreaudio.c:51: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudio.h:18: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h:85: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:208:5: error: redefinition of enumerator 'kAudioObjectPropertyElementMaster' 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 ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:207:5: note: previous definition is here kAudioObjectPropertyElementMain = 0, ^ ../dlls/winecoreaudio.drv/coreaudio.c:28:41: note: expanded from macro 'kAudioObjectPropertyElementMain' #define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster ^
Right, I guess that's even worse than the deprecation warning ;-) So let's switch to using `kAudioObjectPropertyElementMaster`. I'd also missed that it was already in-use, so it's not quite as bad as adding a new warning.