Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'kAudioObjectPropertyElementMain' #1063

Open
ryandesign opened this issue Nov 20, 2024 · 1 comment
Open

Comments

@ryandesign
Copy link

openal-soft 1.24.0 doesn't build on macOS 11:

alc/backends/coreaudio.cpp:307:46: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'?
            kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMain};
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             kAudioObjectPropertyElementName
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:331:5: note: 'kAudioObjectPropertyElementName' declared here
    kAudioObjectPropertyElementName         = 'lchn',
    ^
alc/backends/coreaudio.cpp:315:46: error: use of undeclared identifier 'kAudioObjectPropertyElementMain'; did you mean 'kAudioObjectPropertyElementName'?
            kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMain};
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             kAudioObjectPropertyElementName
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareBase.h:331:5: note: 'kAudioObjectPropertyElementName' declared here
    kAudioObjectPropertyElementName         = 'lchn',
    ^

Full build log: https://build.macports.org/builders/ports-11_x86_64-builder/builds/172017/steps/install-port/logs/stdio

It builds on macOS 12 and later.

This is a regression; 1.23.1 didn't have this problem.

Problem introduced in 5f88fe5.

@kcat
Copy link
Owner

kcat commented Nov 20, 2024

Should be fixed with commit a74fa14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants