Fix recording error (cannot set AVAudioSession mode that is not supported by current AVAudioSession category). Added error capturing and logging for failed audio session initialisation. Stop recording if audio queue initialisation failed. Release audio queue buffer on stop recording.
Fix recording error (cannot set AVAudioSession mode that is not supported by current AVAudioSession category). Added error capturing and logging for failed audio session initialisation. Stop recording if audio queue initialisation failed. Release audio queue buffer on stop recording.