From fd079781357968cd3e1698b41aff4a6e8afb56a6 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 9 Jul 2023 05:50:57 +0100 Subject: [PATCH] configs method added to Remote class --- lib/voicemeeter/remote.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/voicemeeter/remote.rb b/lib/voicemeeter/remote.rb index 6cea536..98b13ab 100644 --- a/lib/voicemeeter/remote.rb +++ b/lib/voicemeeter/remote.rb @@ -5,9 +5,12 @@ require_relative "strip" require_relative "bus" require_relative "button" require_relative "vban" +require_relative "configs" module Voicemeeter module Remote + include Configs + private class Remote < Base @@ -20,11 +23,14 @@ module Voicemeeter @bus = [] kind.num_strip.times { |i| @bus << Bus::Bus.make(self, i) } @button = [] - kind.num_buttons.times do |i| - @button << Button::MacroButton.new(self, i) - end + kind.num_buttons.times { |i| @button << Button::Button.new(self, i) } @vban = Vban::Vban.new(self) end + + def configs + Configs.load + Configs.get(@kind.name) + end end public