We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1632

Summary: iOS CoreAudio doesn't close
Product: SDL Reporter: C.W. Betts <computers57>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: ARM   
OS: iOS (All)   
Attachments: Close CoreAudio on iOS.

Description C.W. Betts 2012-10-28 19:42:01 UTC
Created attachment 982 [details]
Close CoreAudio on iOS.

I noticed when looking through the CoreAudio code of SDL 2.0 that there was a fix me wondering how iOS closed the audio system. While working on my own audio code on PlayerPRO, I discovered that Carbon's component code was replaced in the audio subsystem with Audio Component Services. These services were introduced in OS X 10.6. I was able to take code from SDL 1.2 and incorporate it into my program while also upgrading it.

This patch closes the audio unit on iOS using a function similar to CloseComponent.
Comment 1 Sam Lantinga 2012-11-02 09:30:35 UTC
Fixed, thanks! :)
http://hg.libsdl.org/SDL/rev/b14b66ed5718