Instance Property

secondaryAudioShouldBeSilencedHint

A Boolean value that indicates whether another app, with a nonmixable audio session, is playing audio.

Declaration

@property(readonly) BOOL secondaryAudioShouldBeSilencedHint;

Discussion

Use this property as a hint to silence audio that’s secondary to the functionality of the app. For example, in a game that uses the AVAudioSessionCategoryAmbient category, you can use this property to mute the soundtrack while leaving sound effects unmuted.

See Also

Mixing with Other Audio

otherAudioPlaying

A Boolean value that indicates whether another app is playing audio.

allowHapticsAndSystemSoundsDuringRecording

A Boolean value that indicates whether system sounds and haptics play while recording from audio input.

- setAllowHapticsAndSystemSoundsDuringRecording:error:

Sets a Boolean value that indicates whether system sounds and haptics play while recording from audio input.

promptStyle

A hint to audio sessions that use voice prompt mode to alter the type of prompts they issue in response to other system audio, such as Siri and phone calls.

AVAudioSessionPromptStyle

Constants that indicate the prompt style to use.