mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-21 17:30:49 +00:00
fixes bug in RecorderMode
This commit is contained in:
parent
d387503fa2
commit
ae30e929ac
@ -25,7 +25,7 @@ module Voicemeeter
|
|||||||
make_accessor_int :bitresolution, :channel, :kbps
|
make_accessor_int :bitresolution, :channel, :kbps
|
||||||
make_accessor_float :gain
|
make_accessor_float :gain
|
||||||
|
|
||||||
@mode = RecorderMode.new(self)
|
@mode = RecorderMode.new(remote)
|
||||||
@armstrip = (0...remote.kind.num_strip).map { |j| RecorderArmStrip.new(remote, j) }
|
@armstrip = (0...remote.kind.num_strip).map { |j| RecorderArmStrip.new(remote, j) }
|
||||||
@armbus = (0...remote.kind.num_bus).map { |j| RecorderArmBus.new(remote, j) }
|
@armbus = (0...remote.kind.num_bus).map { |j| RecorderArmBus.new(remote, j) }
|
||||||
end
|
end
|
||||||
@ -64,28 +64,28 @@ module Voicemeeter
|
|||||||
"recorder.mode"
|
"recorder.mode"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
class RecorderArmChannel < IRemote
|
class RecorderArmChannel < IRemote
|
||||||
def initialize(remote, j)
|
def initialize(remote, j)
|
||||||
super(remote)
|
super(remote)
|
||||||
@j = j
|
@j = j
|
||||||
|
end
|
||||||
|
|
||||||
|
def set
|
||||||
|
setter("", val && 1 || 0)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def set
|
class RecorderArmStrip < RecorderArmChannel
|
||||||
setter("", val && 1 || 0)
|
def identifier
|
||||||
|
"recorder.armstrip[#{@j}]"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
class RecorderArmStrip < RecorderArmChannel
|
class RecorderArmBus < RecorderArmChannel
|
||||||
def identifier
|
def identifier
|
||||||
"recorder.armstrip[#{@j}]"
|
"recorder.armbus[#{@j}]"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
class RecorderArmBus < RecorderArmChannel
|
|
||||||
def identifier
|
|
||||||
"recorder.armbus[#{@j}]"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user