Skip to content
Snippets Groups Projects
Commit a03a536b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

iOS audio: fix session closing

Close audio session after audio unit is stopped.

Change-Id: I15aacd8ab4a9782500e70bb0476ca32460fc4a06
parent f12bf14d
No related branches found
No related tags found
No related merge requests found
......@@ -341,10 +341,10 @@ CoreLayer::startStream(AudioStreamType stream)
void
CoreLayer::destroyAudioLayer()
{
[[AVAudioSession sharedInstance] setActive: false withOptions: AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error: nil];
AudioOutputUnitStop(ioUnit_);
AudioUnitUninitialize(ioUnit_);
AudioComponentInstanceDispose(ioUnit_);
[[AVAudioSession sharedInstance] setActive: false withOptions: AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error: nil];
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment