Alex Bollbach
Alex Bollbach

Reputation: 4570

Core Audio code running on simulator mutes currently playing audio

Every time I'm working on a Core Audio application, specifically one that utilizes real-time audio via the remoteIO audio unit render callbacks, the moment I start the audio unit engine running whatever music I am playing via youtube or itunes is muted. I must reload the youtube page or reset my system preference audio settings to get sound back. Is there a solution to this?

Upvotes: 1

Views: 50

Answers (1)

hotpaw2
hotpaw2

Reputation: 70693

Set the mix-with-others property on the Simulator's RemoteIO Audio Unit before starting it. Also enable a proper AVAudioSession category.

Upvotes: 1

Related Questions