mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
configs method added to Remote class
This commit is contained in:
parent
319300ba83
commit
fd07978135
@ -5,9 +5,12 @@ require_relative "strip"
|
|||||||
require_relative "bus"
|
require_relative "bus"
|
||||||
require_relative "button"
|
require_relative "button"
|
||||||
require_relative "vban"
|
require_relative "vban"
|
||||||
|
require_relative "configs"
|
||||||
|
|
||||||
module Voicemeeter
|
module Voicemeeter
|
||||||
module Remote
|
module Remote
|
||||||
|
include Configs
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
class Remote < Base
|
class Remote < Base
|
||||||
@ -20,11 +23,14 @@ module Voicemeeter
|
|||||||
@bus = []
|
@bus = []
|
||||||
kind.num_strip.times { |i| @bus << Bus::Bus.make(self, i) }
|
kind.num_strip.times { |i| @bus << Bus::Bus.make(self, i) }
|
||||||
@button = []
|
@button = []
|
||||||
kind.num_buttons.times do |i|
|
kind.num_buttons.times { |i| @button << Button::Button.new(self, i) }
|
||||||
@button << Button::MacroButton.new(self, i)
|
|
||||||
end
|
|
||||||
@vban = Vban::Vban.new(self)
|
@vban = Vban::Vban.new(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def configs
|
||||||
|
Configs.load
|
||||||
|
Configs.get(@kind.name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
public
|
public
|
||||||
|
Loading…
Reference in New Issue
Block a user