| Summary: | Audio Subsystem doesn't initialize on OSX | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Alexander Ames <alexander.ames> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.3 | ||
| Hardware: | x86 | ||
| OS: | Mac OS X 10.8 | ||
This was just fixed recently in revision control. --ryan. |
When compiling on OSX, the audio subsystem fails to initialize. This appears to be due to the fact that in SDL_AUDIO_DRIVER_COREAUDIO is never set in the CMakeLists file. This variable is needed so that the generated config file will have the #define set for it which is needed by SDL_audio.c. Without that #define set, the list of AudioBootstraps will not include COREAUDIO_bootstrap and thus fail to initialize. I suspect that this whole section of the CMakeLists file is intended to be rewritten due to the comments in the file ("TODO: rework this for proper MacOS X, iOS and Darwin support"), but I didn't see an existing bug filed for this problem so I went ahead and filed one. As a temporary workaround, I've added this to my own CMakeLists.txt: if(APPLE) set(SDL_AUDIO_DRIVER_COREAUDIO 1) endif(APPLE)