diff --git a/lib/voicemeeter/base.rb b/lib/voicemeeter/base.rb index f28ec50..be17524 100644 --- a/lib/voicemeeter/base.rb +++ b/lib/voicemeeter/base.rb @@ -25,11 +25,11 @@ module Voicemeeter @sync = kwargs[:sync] || false @ratelimit = kwargs[:ratelimit] || RATELIMIT @delay = kwargs[:delay] || DELAY - @midi = Midi.new @event = Events::Tracker.new( **(kwargs.select { |k, _| %i[pdirty mdirty ldirty midi].include? k }) ) + @midi = Midi.new @callback = Events::Callback.new @que = Queue.new @cache = {strip_mode: 0} diff --git a/lib/voicemeeter/remote.rb b/lib/voicemeeter/remote.rb index dfd11c9..471c605 100644 --- a/lib/voicemeeter/remote.rb +++ b/lib/voicemeeter/remote.rb @@ -44,7 +44,7 @@ module Voicemeeter public attr_reader :strip, :bus, :button, :vban, :command, :device, :option private attr_writer :strip, :bus, :button, :vban, :command, :device, :option - def initialize(kind, **) + def initialize(...) super director.each { |step| send("#{step}=", steps(step).call) } end