8

I'd like the recording to continue, but with the audio muted. I'm not looking to pause the audio.

The alternative I have right now is pause the audio, throw in silence padding, continue recording, but if there was a simpler way of doing that, that would be great.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Chris Jones
  • 856
  • 1
  • 11
  • 24
  • This might help: https://developer.apple.com/library/archive/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html – A Friend Dec 11 '18 at 17:22

1 Answers1

0

I also faced this issue, After long research i got the way whatever already you thought.

Your are going on right path !

One developer given related answer AVAudioRecorder / AVAudioPlayer - append recording to file:

You can append two audio files by creating a AVMutableCompositionTrack after adding the two files and exporting the composition using exportAsynchronouslyWithCompletionHandler method of AVAssetExportSession.

Please refer below links for more details.

AVAssetExportSession Class Reference

Creating New Assets

Hope this helps to solve your issue.

legoscia
  • 39,593
  • 22
  • 116
  • 167
Yogesh Rathi
  • 6,331
  • 4
  • 51
  • 81