| Summary: | OSX deprecated Carbon Components Audio Unit warning | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Dominik Reichardt <sdl-bugzilla> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, fabio |
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | Mac OS X (All) | ||
| Bug Depends on: | |||
| Bug Blocks: | 1756 | ||
| Attachments: |
patch
Patch for SDL 1.2x Patch for SDL2 - keeping support for OS X 10.5 Patch for SDL2 |
||
Created attachment 2272 [details]
Patch for SDL 1.2x
I've added a patch for SDL 1.2x as well
Created attachment 2273 [details]
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. :)
Created attachment 2274 [details]
Patch for SDL2
Applied with this commit: https://hg.libsdl.org/SDL/rev/3115d38204aa I wish you could apply this to the SDL-1.2 branch as well ;) SDL 1.2 is itself deprecated. The audio components warning is just a bonus :) Yeah, I know ;) It's just because it still receives some bug fixes from time to time... Marking resolved. |
Created attachment 2271 [details] 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.