I tried to set it to false before calling AudioOutputUnitStop()
andAudioUnitUninitialize()
.
I was able to fix it by calling AudioSessionSetActive(false)
after those calls have succeeded.
Now the question still remains: Why none of the sample codes call AudioSessionSetActive(false)?
Thanks!
Beinan