Class: Voicemeeter::Command

Inherits:
Object
  • Object
show all
Extended by:
MetaFunctions
Includes:
IRemote
Defined in:
lib/voicemeeter/command.rb

Instance Method Summary collapse

Methods included from IRemote

#apply, #initialize, #to_s

Methods included from Logging

#logger

Instance Method Details

#hideObject



13
14
15
# File 'lib/voicemeeter/command.rb', line 13

def hide
  setter("show", 0)
end

#identifierObject



9
10
11
# File 'lib/voicemeeter/command.rb', line 9

def identifier
  :command
end

#load(value) ⇒ Object

Raises:

  • (VMError)


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

#resetObject



29
30
31
# File 'lib/voicemeeter/command.rb', line 29

def reset
  @remote.apply_config(:reset)
end

#save(value) ⇒ Object

Raises:

  • (VMError)


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