mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-24 10:50:49 +00:00
forward Remote args with triple dot
This commit is contained in:
parent
0693ac8fec
commit
dced3bc183
@ -25,11 +25,11 @@ module Voicemeeter
|
|||||||
@sync = kwargs[:sync] || false
|
@sync = kwargs[:sync] || false
|
||||||
@ratelimit = kwargs[:ratelimit] || RATELIMIT
|
@ratelimit = kwargs[:ratelimit] || RATELIMIT
|
||||||
@delay = kwargs[:delay] || DELAY
|
@delay = kwargs[:delay] || DELAY
|
||||||
@midi = Midi.new
|
|
||||||
@event =
|
@event =
|
||||||
Events::Tracker.new(
|
Events::Tracker.new(
|
||||||
**(kwargs.select { |k, _| %i[pdirty mdirty ldirty midi].include? k })
|
**(kwargs.select { |k, _| %i[pdirty mdirty ldirty midi].include? k })
|
||||||
)
|
)
|
||||||
|
@midi = Midi.new
|
||||||
@callback = Events::Callback.new
|
@callback = Events::Callback.new
|
||||||
@que = Queue.new
|
@que = Queue.new
|
||||||
@cache = {strip_mode: 0}
|
@cache = {strip_mode: 0}
|
||||||
|
@ -44,7 +44,7 @@ module Voicemeeter
|
|||||||
public attr_reader :strip, :bus, :button, :vban, :command, :device, :option
|
public attr_reader :strip, :bus, :button, :vban, :command, :device, :option
|
||||||
private attr_writer :strip, :bus, :button, :vban, :command, :device, :option
|
private attr_writer :strip, :bus, :button, :vban, :command, :device, :option
|
||||||
|
|
||||||
def initialize(kind, **)
|
def initialize(...)
|
||||||
super
|
super
|
||||||
director.each { |step| send("#{step}=", steps(step).call) }
|
director.each { |step| send("#{step}=", steps(step).call) }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user