Choose the correct answer?
import Foundation
import AVFoundation
func startCapture()
{ if let device : AVCaptureDevice = AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeAudio){ do { self.session = AVCaptureSession() try device.lockForConfiguration() let audioInput = try AVCaptureDeviceInput(device: device) device.unlockForConfiguration() // audio capture operation … … } catch { } } }
Correct Answer: If audio device was already used, this function cannot work
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions