mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
test vban direction in apply()
This commit is contained in:
parent
d21b805882
commit
b207e7cc24
@ -218,7 +218,7 @@ module Voicemeeter
|
|||||||
case key.to_s.split("-")
|
case key.to_s.split("-")
|
||||||
in [/strip|bus|button/ => kls, /^[0-9]+$/ => index]
|
in [/strip|bus|button/ => kls, /^[0-9]+$/ => index]
|
||||||
target = send(kls)
|
target = send(kls)
|
||||||
in ["vban", String => dir, /^[0-9]+$/ => index]
|
in ["vban", /in|instream|out|oustream/ => dir, /^[0-9]+$/ => index]
|
||||||
target = vban.send("#{dir.chomp("stream")}stream")
|
target = vban.send("#{dir.chomp("stream")}stream")
|
||||||
else
|
else
|
||||||
raise KeyError, "invalid config key '#{key}'"
|
raise KeyError, "invalid config key '#{key}'"
|
||||||
|
Loading…
Reference in New Issue
Block a user