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

OSX deprecated Carbon Components Audio Unit warning #1976

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

OSX deprecated Carbon Components Audio Unit warning #1976

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Labels
bug

Comments

@SDLBugzilla
Copy link
Collaborator

@SDLBugzilla SDLBugzilla commented Feb 11, 2021

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.

@SDLBugzilla SDLBugzilla added the bug label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant