class

DeviceInfo

Inherits Reference < Object

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.

Constructors

new(di : LibPortMIDI::DeviceInfo)
Source

Instance methods

input?

Returns true if this is an input device.

Source
interface
Source
name
Source
opened?

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.

Source
output?

Returns true if this is an output device.

Source
version
Source