In the Monterey SDK and newer, all constants using "Master" were renamed, marked deprecated, and print an annoying warning message on each build.
Fortunately this is an easy fix, and boils down to doing find/replace kAudioObjectPropertyElementMaster with kAudioObjectPropertyElementMain and adding to the top of each affected file:
#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000
# define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster
#endif
to retain compatibility with older SDKs.