Remove conditional downcast

This commit is contained in:
Marc Rousavy 2021-12-30 10:34:46 +01:00
parent c2ba4fb1af
commit a3cfcc2908

View File

@ -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)
} }
} }