Class: Voicemeeter::Vban
- Inherits:
-
Object
- Object
- Voicemeeter::Vban
- Defined in:
- lib/voicemeeter/vban.rb
Instance Attribute Summary collapse
-
#instream ⇒ Object
Returns the value of attribute instream.
-
#outstream ⇒ Object
Returns the value of attribute outstream.
Instance Method Summary collapse
- #disable ⇒ Object
- #enable ⇒ Object
-
#initialize(remote, vban_streams) ⇒ Vban
constructor
A new instance of Vban.
Constructor Details
#initialize(remote, vban_streams) ⇒ Vban
Returns a new instance of Vban.
59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/voicemeeter/vban.rb', line 59 def initialize(remote, vban_streams) " Initializes a Vban class Creates an array for each in/out stream " vban_in, vban_out = vban_streams.values self.instream = (0...vban_in).map { |i| VbanInstream.new(remote, i) } self.outstream = (0...vban_out).map { |i| VbanOutstream.new(remote, i) } @remote = remote end |
Instance Attribute Details
#instream ⇒ Object
Returns the value of attribute instream.
57 58 59 |
# File 'lib/voicemeeter/vban.rb', line 57 def instream @instream end |
#outstream ⇒ Object
Returns the value of attribute outstream.
57 58 59 |
# File 'lib/voicemeeter/vban.rb', line 57 def outstream @outstream end |
Instance Method Details
#disable ⇒ Object
76 77 78 |
# File 'lib/voicemeeter/vban.rb', line 76 def disable @remote.set_parameter("vban.enable", 0) end |
#enable ⇒ Object
72 73 74 |
# File 'lib/voicemeeter/vban.rb', line 72 def enable @remote.set_parameter("vban.enable", 1) end |