Skip to content

OSX deprecated Carbon Components Audio Unit warning #1976

@SDLBugzilla

Description

@SDLBugzilla

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Mac OS X (All), x86

Comments on the original bug report:

On 2015-09-21 21:15:34 +0000, Dominik Reichardt wrote:

Created attachment 2271
patch

With current SDL code you receive this warning in SDL apps:

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.

This is because the CoreAudio code is still using the pre-OSX-10.6 code. Since you are only supporting OS X >= 10.7 you can move away from this old code.

Attached patch seems to fix it. I only tested with Exult (exult.sf.net), with these changes it still builds and still produces sound with CoreAudio.

I'll see about making a patch for SDL 1.2x as well, since a lot of apps I build still use it and are not likely to switch unfortunately.

On 2015-09-21 22:14:26 +0000, Dominik Reichardt wrote:

Created attachment 2272
Patch for SDL 1.2x

I've added a patch for SDL 1.2x as well

On 2015-09-21 22:35:46 +0000, Dominik Reichardt wrote:

Created attachment 2273
Patch for SDL2 - keeping support for OS X 10.5

Added a second patch for SDL2 that keeps support for OS X 10.5 so SDL2 can still be deployed for that. Adds ugly
#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1050
lines, though. :)

On 2015-09-21 22:36:47 +0000, Dominik Reichardt wrote:

Created attachment 2274
Patch for SDL2

On 2016-05-21 03:21:29 +0000, Alex Szpakowski wrote:

Applied with this commit: https://hg.libsdl.org/SDL/rev/3115d38204aa

On 2016-05-23 21:39:36 +0000, Dominik Reichardt wrote:

I wish you could apply this to the SDL-1.2 branch as well ;)

On 2016-05-23 21:52:49 +0000, Alex Szpakowski wrote:

SDL 1.2 is itself deprecated. The audio components warning is just a bonus :)

On 2016-05-23 22:02:10 +0000, Dominik Reichardt wrote:

Yeah, I know ;)
It's just because it still receives some bug fixes from time to time...

On 2016-10-01 21:24:46 +0000, Sam Lantinga wrote:

Marking resolved.

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