mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-22 01:40:49 +00:00
apply extended to handle bus modes
This commit is contained in:
parent
416a69113a
commit
5dbf3e547c
@ -30,7 +30,7 @@ module Voicemeeter
|
||||
end
|
||||
|
||||
def _cmd(param)
|
||||
param.empty? ? self.identifier : "#{self.identifier}.#{param}"
|
||||
param.empty? ? identifier : "#{identifier}.#{param}"
|
||||
end
|
||||
|
||||
def identifier
|
||||
@ -43,7 +43,11 @@ module Voicemeeter
|
||||
target = self.send(key)
|
||||
target.apply(val)
|
||||
else
|
||||
self.send("#{key}=", val)
|
||||
if key == :mode
|
||||
self.mode.send("#{val}=", true)
|
||||
else
|
||||
self.send("#{key}=", val)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user