Module: MIDICommunications::Adapter::MacOS::Loader Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Loader for macOS MIDI devices.
Class Method Summary collapse
-
.inputs ⇒ Array<MIDICommunicationsMacOS::Source>
private
Returns all available MIDI input sources.
-
.outputs ⇒ Array<MIDICommunicationsMacOS::Destination>
private
Returns all available MIDI output destinations.
-
.refresh ⇒ void
private
Discards the Core MIDI device list so that the next enumeration walks the system again.
Instance Method Summary collapse
-
#inputs ⇒ Array<MIDICommunicationsMacOS::Source>
private
Returns all available MIDI input sources.
-
#outputs ⇒ Array<MIDICommunicationsMacOS::Destination>
private
Returns all available MIDI output destinations.
-
#refresh ⇒ void
private
Discards the Core MIDI device list so that the next enumeration walks the system again.
Class Method Details
.inputs ⇒ Array<MIDICommunicationsMacOS::Source>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns all available MIDI input sources.
20 21 22 |
# File 'lib/midi-communications/adapter/macos.rb', line 20 def inputs ::MIDICommunicationsMacOS::Endpoint.all_by_type[:source] end |
.outputs ⇒ Array<MIDICommunicationsMacOS::Destination>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns all available MIDI output destinations.
26 27 28 |
# File 'lib/midi-communications/adapter/macos.rb', line 26 def outputs ::MIDICommunicationsMacOS::Endpoint.all_by_type[:destination] end |
.refresh ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Discards the Core MIDI device list so that the next enumeration walks the system again.
Guarded on populated? because Device.refresh clears a list that
does not exist until something has enumerated once.
37 38 39 |
# File 'lib/midi-communications/adapter/macos.rb', line 37 def refresh ::MIDICommunicationsMacOS::Device.refresh if ::MIDICommunicationsMacOS::Device.populated? end |
Instance Method Details
#inputs ⇒ Array<MIDICommunicationsMacOS::Source>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns all available MIDI input sources.
20 21 22 |
# File 'lib/midi-communications/adapter/macos.rb', line 20 def inputs ::MIDICommunicationsMacOS::Endpoint.all_by_type[:source] end |
#outputs ⇒ Array<MIDICommunicationsMacOS::Destination>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns all available MIDI output destinations.
26 27 28 |
# File 'lib/midi-communications/adapter/macos.rb', line 26 def outputs ::MIDICommunicationsMacOS::Endpoint.all_by_type[:destination] end |
#refresh ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Discards the Core MIDI device list so that the next enumeration walks the system again.
Guarded on populated? because Device.refresh clears a list that
does not exist until something has enumerated once.
37 38 39 |
# File 'lib/midi-communications/adapter/macos.rb', line 37 def refresh ::MIDICommunicationsMacOS::Device.refresh if ::MIDICommunicationsMacOS::Device.populated? end |