mirror of
https://github.com/samsonjs/SJSAssetExportSession.git
synced 2026-03-25 08:45:50 +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
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue