diff --git a/lib/voicemeeter/bus.rb b/lib/voicemeeter/bus.rb index 5c32c06..deee6f8 100644 --- a/lib/voicemeeter/bus.rb +++ b/lib/voicemeeter/bus.rb @@ -13,8 +13,7 @@ module Voicemeeter attr_reader :eq, :mode, :levels def self.make(remote, i) - p_out = remote.kind.phys_out - (i < p_out) ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i) + (i < remote.kind.phys_out) ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i) end def initialize(remote, i) diff --git a/lib/voicemeeter/strip.rb b/lib/voicemeeter/strip.rb index fed083a..d5b5680 100644 --- a/lib/voicemeeter/strip.rb +++ b/lib/voicemeeter/strip.rb @@ -13,8 +13,7 @@ module Voicemeeter attr_reader :gainlayer, :levels def self.make(remote, i) - p_in = remote.kind.phys_in - (i < p_in) ? PhysicalStrip.new(remote, i) : VirtualStrip.new(remote, i) + (i < remote.kind.phys_in) ? PhysicalStrip.new(remote, i) : VirtualStrip.new(remote, i) end def initialize(remote, i)