Remove conditional downcast
This commit is contained in:
parent
c2ba4fb1af
commit
a3cfcc2908
@ -125,7 +125,7 @@ extension CameraView: AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAud
|
|||||||
self.activateAudioSession()
|
self.activateAudioSession()
|
||||||
|
|
||||||
if let audioOutput = self.audioOutput,
|
if let audioOutput = self.audioOutput,
|
||||||
let audioSettings = audioOutput.recommendedAudioSettingsForAssetWriter(writingTo: fileType) as? [String: Any] {
|
let audioSettings = audioOutput.recommendedAudioSettingsForAssetWriter(writingTo: fileType) {
|
||||||
self.recordingSession!.initializeAudioWriter(withSettings: audioSettings)
|
self.recordingSession!.initializeAudioWriter(withSettings: audioSettings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user