Skip to content

Deprecated constants used in newer Mac SDKs #832

@mrpapersonic

Description

@mrpapersonic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions