Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: jg18 on August 30, 2016, 10:09:56 am

Title: Deprecated Audio API on OS X?
Post by: jg18 on August 30, 2016, 10:09:56 am
I got this warning message when running 3.7.4 in the Terminal on OS X (10.11.3), although the game seemed to launch OK:

Quote
2016-08-30 05:37:33.819 FS2_Open 3.7.4[582:14962] 05:37:33.819 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.

Not yet sure what we'll need to do or how to fix it though.
Title: Re: Deprecated Audio API on OS X?
Post by: chief1983 on August 30, 2016, 10:25:31 am
I wonder if that's related to #847 (https://github.com/scp-fs2open/fs2open.github.com/issues/847).
Title: Re: Deprecated Audio API on OS X?
Post by: jg18 on August 30, 2016, 11:11:36 pm
Maybe? Best guess at the moment is that Apple's OpenAL is using an outdated OS X audio API. One way to test would be to build up-to-date OpenAL Soft and use that with a 3.7.4 build from source instead of Apple's OpenAL although that's a fair bit of work, so not sure when I'll be able to try that.

The list of dynamic libraries that Apple's OpenAL depends on:

Code: [Select]
$ otool -L /System/Library/Frameworks/OpenAL.framework/OpenAL
/System/Library/Frameworks/OpenAL.framework/OpenAL:
/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1258.0.0)
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 492.0.0)
/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 728.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
Title: Re: Deprecated Audio API on OS X?
Post by: chief1983 on March 11, 2017, 11:01:18 am
Is this still a thing?  We should probably get an official issue on Github to track migrating OS X to OpenAL Soft I think.  Don't know if it would help with this issue but I've never seen it myself.  Maybe the error here warrants an issue of its own?