AudioModel
public struct AudioModel : Equatable
extension AudioModel: ObjectiveCBridgeable
An AudioModel
holds information about the audio clips that should be added to the output video.
-
The audio clips that are added to the video.
Note
All but the first audio clip are currently ignored.Declaration
Swift
public var clips: [AudioClipModel]
-
The volume mix between original audio from the video and the added overlay audio (original only: -1.0, overlay only: 1.0, both: 0.0).
Declaration
Swift
public var volumeBalance: Double
-
Creates a new
AudioModel
with an emptyclips
array.Declaration
Swift
public init()
-
Creates a new
AudioModel
with the given audio clips.Note
Note:All but the first audio clip are currently ignored.Declaration
Swift
public init(clips: [AudioClipModel], volumeBalance: Double)
Parameters
clips
The audio clips that should be added to the video.