From d995fbab46bbc0343111cdd18c52af0f96ccdef5 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 19 Oct 2024 14:37:20 -0700 Subject: [PATCH] Make AudioOutputSettings and VideoOutputSettings properties public --- .../SJSAssetExportSession/AudioOutputSettings.swift | 6 +++--- .../SJSAssetExportSession/VideoOutputSettings.swift | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/SJSAssetExportSession/AudioOutputSettings.swift b/Sources/SJSAssetExportSession/AudioOutputSettings.swift index f2f4764..0069465 100644 --- a/Sources/SJSAssetExportSession/AudioOutputSettings.swift +++ b/Sources/SJSAssetExportSession/AudioOutputSettings.swift @@ -26,9 +26,9 @@ public struct AudioOutputSettings: Hashable, Sendable, Codable { } } - let format: AudioFormatID - let channels: Int - let sampleRate: Int? + public let format: AudioFormatID + public let channels: Int + public let sampleRate: Int? /// Specifies the AAC format with 2 channels at a 44.1 KHz sample rate. public static var `default`: AudioOutputSettings { diff --git a/Sources/SJSAssetExportSession/VideoOutputSettings.swift b/Sources/SJSAssetExportSession/VideoOutputSettings.swift index 8e48163..92dc8d1 100644 --- a/Sources/SJSAssetExportSession/VideoOutputSettings.swift +++ b/Sources/SJSAssetExportSession/VideoOutputSettings.swift @@ -88,11 +88,11 @@ public struct VideoOutputSettings: Hashable, Sendable, Codable { } } - let codec: Codec - let size: CGSize - let fps: Int? - let bitrate: Int? - let color: Color? + public let codec: Codec + public let size: CGSize + public let fps: Int? + public let bitrate: Int? + public let color: Color? public static func codec(_ codec: Codec, size: CGSize) -> VideoOutputSettings { .init(codec: codec, size: size, fps: nil, bitrate: nil, color: nil)