---
title: "setAllowHapticsAndSystemSoundsDuringRecording(_:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiosession/setallowhapticsandsystemsoundsduringrecording(_:)"
---

# setAllowHapticsAndSystemSoundsDuringRecording(_:)

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

## Declaration

```swift
func setAllowHapticsAndSystemSoundsDuringRecording(_ inValue: Bool) throws
```

## Parameters

- `inValue`: A Boolean value that indicates whether haptics and system sounds should play while recording is in progress.

## See Also

### Mixing with other audio

- [isOtherAudioPlaying](avfaudio/avaudiosession/isotheraudioplaying.md)
- [secondaryAudioShouldBeSilencedHint](avfaudio/avaudiosession/secondaryaudioshouldbesilencedhint.md)
- [silenceSecondaryAudioHintNotification](avfaudio/avaudiosession/silencesecondaryaudiohintnotification.md)
- [allowHapticsAndSystemSoundsDuringRecording](avfaudio/avaudiosession/allowhapticsandsystemsoundsduringrecording.md)
