Module: Voicemeeter::Configs

Included in:
Base
Defined in:
lib/voicemeeter/configs.rb

Defined Under Namespace

Classes: TOMLStrBuilder

Instance Method Summary collapse

Instance Method Details

#set_config(value) ⇒ Object Also known as: apply_config



66
67
68
69
70
71
72
73
74
75
# File 'lib/voicemeeter/configs.rb', line 66

def set_config(value)
  loader
  unless @@configs.key? value
    raise VMRemoteErrors.new("No profile with name #{value} was loaded")
  end

  self.send("set_multi", @@configs[value])
  puts "config #{@kind.name}/#{value} applied!"
  sleep(@delay)
end