// RecordingResult.swift

struct RecordingResult {
    var fileUri: String
    var filename: String
    var mimeType: String
    var duration: Int64
    var size: Int64
    var channels: Int
    var bitDepth: Int
    var sampleRate: Double
    var compression: CompressedRecordingInfo?
    /// URI of the file written by the native AAC direct-to-file encoder
    /// (`RecordingSettings.compression`). Nil when the new encoder is not
    /// active. Distinct from the legacy nested
    /// `compression.compressedFileUri` produced by `output.compressed`.
    var compressedFileUri: String?
}

struct StartRecordingResult {
    var fileUri: String
    var mimeType: String
    var channels: Int
    var bitDepth: Int
    var sampleRate: Double
    var compression: CompressedRecordingInfo?
    /// URI of the file that the native AAC direct-to-file encoder is writing
    /// to. Identical to the value returned by `stopRecording`. Nil when the
    /// new encoder is not active.
    var compressedFileUri: String?
}
