             format = .wav
             formatKey = kAudioFormatLinearPCM
         default:
-            AKLog("Unsupported output format: \(outputFormat)")
+            Swift.print("Unsupported output format: \(outputFormat)")
             return
         }
 

                                        thePropertySize,
                                        &dstFormat)
        if error != noErr {
            Swift.print("Error 2")
            completionHandler?(createError(message: "Unable to set data format on output file."))
            return
        }

            AudioFileFlags.eraseFile.rawValue, // overwrite old file if present
            &destinationFile)

        if error != noErr {
            completionHandler?(createError(message: "Unable to create output file."))
            return
        }

        guard let outputFile = destinationFile else {
            completionHandler?(createError(message: "Unable to create output file (2)."))
            return
        }

