Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Sources/Atem/Messages/Actions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ extension Message.Do {
}
}

extension Message.Do {
/// Performs a auto transition on the atem
public struct Auto: SerializableMessage {
public static let title = Message.Title(string: "DAut")
public let debugDescription = "auto"
public let atemSize: AtemSize

public init(with bytes: ArraySlice<UInt8>) {
atemSize = AtemSize(rawValue: bytes.first!)!
}

public init(in atemSize: AtemSize) {
self.atemSize = atemSize
}

public var dataBytes: [UInt8] {
return [atemSize.rawValue] + [0,0,0]
}
}
}

// MARK: - Change Preview Bus
extension Message.Do {
/// Informs a switcher that the preview bus should be changed
Expand Down