class Extron::Matrix

Included Modules

Defined in:

extron/matrix.cr

Constant Summary

MUTE_INPUT = 0_u16

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def audio_mute(state : Bool = true, group : Int32 = 2) #

Sets the audio mute state on the specified group.

NOTE mute groups may differ from volume groups depending on device configuration. Default group (2) is program audio.


[View source]
def connected #

[View source]
def device_size #

[View source]
def disconnected #

[View source]
def mute(state : Bool = true, index : Int32 | String = 0, layer : MuteLayer = MuteLayer::AudioVideo) #
Description copied from module PlaceOS::Driver::Interface::Muteable

When implementing muteable, these should be the preferred defaults


[View source]
def on_load #

[View source]
def on_update #

[View source]
def query_device_info #

[View source]
def received(data, task) #

Response callback for async responses.


[View source]
def switch(map : Hash(Input, Array(Output)), layer : SwitchLayer | Nil = nil) #

Implementing switchable interface


[View source]
def switch_layer(input : Input, layer : MatrixLayer = MatrixLayer::All) #

Connect input to all outputs at the specified layer.


[View source]
def switch_map(map : SignalMap, layer : MatrixLayer = MatrixLayer::All) #

Applies a SignalMap as a single operation. All included ties will take simultaneously on the device.


[View source]
def switch_one(input : Input, output : Output, layer : MatrixLayer = MatrixLayer::All) #

Connect a signal input to an output at the specified layer.

0 may be used as either an input or output to specify a disconnection at the corresponding signal point. For example, to disconnect input 1 from all outputs is is currently feeding #switch(1, 0).


[View source]
def switch_to(input : Input) #
Description copied from module PlaceOS::Driver::Interface::InputSelection(UInt16)

Switches all outputs to the requested input Special case switch_to 0 should mute all the outputs, if supported


[View source]
def volume(level : Float64 | Int32, group : Int32 = 1) #

Sets the audio volume level (0..100) on the specified mix group.


[View source]