Module: MIDICommunications::Adapter::Windows::Loader Private

Extended by:
Loader
Included in:
Loader
Defined in:
lib/midi-communications/adapter/windows.rb

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 Windows MIDI devices.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inputsArray<MIDIWinMM::Input>

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 devices.

Returns:

  • (Array<MIDIWinMM::Input>)


18
19
20
# File 'lib/midi-communications/adapter/windows.rb', line 18

def inputs
  ::MIDIWinMM::Device.all_by_type[:input]
end

.outputsArray<MIDIWinMM::Output>

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 devices.

Returns:

  • (Array<MIDIWinMM::Output>)


24
25
26
# File 'lib/midi-communications/adapter/windows.rb', line 24

def outputs
  ::MIDIWinMM::Device.all_by_type[:output]
end

Instance Method Details

#inputsArray<MIDIWinMM::Input>

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 devices.

Returns:

  • (Array<MIDIWinMM::Input>)


18
19
20
# File 'lib/midi-communications/adapter/windows.rb', line 18

def inputs
  ::MIDIWinMM::Device.all_by_type[:input]
end

#outputsArray<MIDIWinMM::Output>

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 devices.

Returns:

  • (Array<MIDIWinMM::Output>)


24
25
26
# File 'lib/midi-communications/adapter/windows.rb', line 24

def outputs
  ::MIDIWinMM::Device.all_by_type[:output]
end