mirror of
https://github.com/samsonjs/SJSAssetExportSession.git
synced 2026-04-27 14:57:46 +00:00
Make AudioOutputSettings and VideoOutputSettings properties public
This commit is contained in:
parent
6bda654048
commit
d995fbab46
2 changed files with 8 additions and 8 deletions
|
|
@ -26,9 +26,9 @@ public struct AudioOutputSettings: Hashable, Sendable, Codable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let format: AudioFormatID
|
public let format: AudioFormatID
|
||||||
let channels: Int
|
public let channels: Int
|
||||||
let sampleRate: Int?
|
public let sampleRate: Int?
|
||||||
|
|
||||||
/// Specifies the AAC format with 2 channels at a 44.1 KHz sample rate.
|
/// Specifies the AAC format with 2 channels at a 44.1 KHz sample rate.
|
||||||
public static var `default`: AudioOutputSettings {
|
public static var `default`: AudioOutputSettings {
|
||||||
|
|
|
||||||
|
|
@ -88,11 +88,11 @@ public struct VideoOutputSettings: Hashable, Sendable, Codable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let codec: Codec
|
public let codec: Codec
|
||||||
let size: CGSize
|
public let size: CGSize
|
||||||
let fps: Int?
|
public let fps: Int?
|
||||||
let bitrate: Int?
|
public let bitrate: Int?
|
||||||
let color: Color?
|
public let color: Color?
|
||||||
|
|
||||||
public static func codec(_ codec: Codec, size: CGSize) -> VideoOutputSettings {
|
public static func codec(_ codec: Codec, size: CGSize) -> VideoOutputSettings {
|
||||||
.init(codec: codec, size: size, fps: nil, bitrate: nil, color: nil)
|
.init(codec: codec, size: size, fps: nil, bitrate: nil, color: nil)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue