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 - iOS CoreAudio doesn't close
Summary: iOS CoreAudio doesn't close
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: audio (show other bugs)
Version: HG 2.0
Hardware: ARM iOS (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-28 19:42 UTC by C.W. Betts
Modified: 2012-11-02 09:30 UTC (History)
0 users

See Also:


Attachments
Close CoreAudio on iOS. (654 bytes, patch)
2012-10-28 19:42 UTC, C.W. Betts
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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