 
         let queue = DispatchQueue(label: "io.audiokit.AKConverter.start", qos: .utility)
 
-        //session.progress could be sent out via a delegate for this session
+        // session.progress could be sent out via a delegate for this session
         writerInput.requestMediaDataWhenReady(on: queue, using: {
             while writerInput.isReadyForMoreMediaData {
-
                 if reader.status == .failed {
                     AKLog("Conversion Failed")
                     break


        // Note: AVAssetReaderOutput does not currently support compressed output
        if formatKey == kAudioFormatMPEG4AAC {

            if sampleRate > 48_000 {
                sampleRate = 44_100
            }

        let asset = AVURLAsset(url: inputURL)
        guard let session = AVAssetExportSession(asset: asset, presetName: AVAssetExportPresetAppleM4A) else { return }

        // session.progress could be sent out via a delegate for this session
        session.outputURL = outputURL
        session.outputFileType = .m4a
        session.exportAsynchronously {
