class DeviceInfo
- DeviceInfo
- Reference
- Object
Overview
A wrapper around a LibPortMIDI::DeviceInfo struct. Consider instances to
be snapshots, because their instance variables do not change over time. For
example, the value of #opened? will not change when the corresponding
device is opened.
To get a fresh instance call PortMIDI#get_device_info.
Defined in:
port_midi/device_info.crConstructors
Instance Method Summary
-
#input? : Bool
Returns
trueif this is an input device. - #interface : String
- #name : String
-
#opened? : Bool
Returns
trueif this device is opened. -
#output? : Bool
Returns
trueif this is an output device. - #version : Int32
Constructor Detail
Instance Method Detail
def opened? : Bool
#
Returns true if this device is opened. As noted in the class comment,
this is a snapshot: the value will not change when the device is opened
or closed.