I finally figured it out. I saw many examples, but could not get them to work.
Most of the examples there do not indicate that for something like:
UInt32 propertySize, audioIsAlreadyPlaying;
propertySize = sizeof(UInt32);
AudioSessionGetProperty(kAudioSessionProperty_OtherAudioIsPlaying, &propertySize, &audioIsAlreadyPlaying);
, AudioToolbox. .
( ), , audioIsAlreadyPlaying .