Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1632 - iOS CoreAudio doesn't close
Browse files Browse the repository at this point in the history
 C.W. Betts 2012-10-28 19:42:01 PDT

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.
  • Loading branch information
slouken committed Nov 2, 2012
1 parent 4a3e5fc commit fbcb217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/coreaudio/SDL_coreaudio.c
Expand Up @@ -340,9 +340,10 @@ COREAUDIO_CloseDevice(_THIS)
scope, bus, &callback,
sizeof(callback));

/* !!! FIXME: how does iOS free this? */
#if MACOSX_COREAUDIO
CloseComponent(this->hidden->audioUnit);
#else
AudioComponentInstanceDispose(this->hidden->audioUnit);
#endif

this->hidden->audioUnitOpened = 0;
Expand Down

0 comments on commit fbcb217

Please sign in to comment.