Class: Webmidi::Transport::Null
- Inherits:
-
Base
- Object
- Base
- Webmidi::Transport::Null
show all
- Defined in:
- lib/webmidi/transport/null.rb
Defined Under Namespace
Classes: NullInputHandle, NullOutputHandle
Class Method Summary
collapse
Methods inherited from Base
open_input, open_output
Class Method Details
.available? ⇒ Boolean
8
9
10
|
# File 'lib/webmidi/transport/null.rb', line 8
def self.available?
true
end
|
20
21
22
23
|
# File 'lib/webmidi/transport/null.rb', line 20
def self.create_virtual_input(name)
info = DeviceInfo.new(id: generate_id("input"), name: name, manufacturer: "Null", version: "0")
NullInputHandle.new(info)
end
|
.create_virtual_output(name) ⇒ Object
25
26
27
28
|
# File 'lib/webmidi/transport/null.rb', line 25
def self.create_virtual_output(name)
info = DeviceInfo.new(id: generate_id("output"), name: name, manufacturer: "Null", version: "0")
NullOutputHandle.new(info)
end
|
12
13
14
|
# File 'lib/webmidi/transport/null.rb', line 12
def self.list_inputs
[]
end
|
.list_outputs ⇒ Object
16
17
18
|
# File 'lib/webmidi/transport/null.rb', line 16
def self.list_outputs
[]
end
|