Class: Voicemeeter::Command
Instance Method Summary
collapse
Methods included from IRemote
#apply, #initialize, #to_s
Methods included from Logging
#logger
Instance Method Details
#hide ⇒ Object
13
14
15
|
# File 'lib/voicemeeter/command.rb', line 13
def hide
setter("show", 0)
end
|
#identifier ⇒ Object
9
10
11
|
# File 'lib/voicemeeter/command.rb', line 9
def identifier
:command
end
|
#load(value) ⇒ Object
17
18
19
20
21
|
# File 'lib/voicemeeter/command.rb', line 17
def load(value)
raise VMError.new("load got: #{value}, but expected a string") unless value.is_a? String
setter("load", value)
sleep(0.2)
end
|
#reset ⇒ Object
29
30
31
|
# File 'lib/voicemeeter/command.rb', line 29
def reset
@remote.apply_config(:reset)
end
|
#save(value) ⇒ Object
23
24
25
26
27
|
# File 'lib/voicemeeter/command.rb', line 23
def save(value)
raise VMError.new("save got: #{value}, but expected a string") unless value.is_a? String
setter("save", value)
sleep(0.2)
end
|