From dced3bc183ce89acbcddc5ea227747ad30f76352 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 25 Jul 2023 10:03:43 +0100 Subject: [PATCH] forward Remote args with triple dot --- lib/voicemeeter/base.rb | 2 +- lib/voicemeeter/remote.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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