Class: Voicemeeter::Vban::Base
- Inherits:
-
Object
- Object
- Voicemeeter::Vban::Base
- Defined in:
- lib/voicemeeter/vban.rb
Overview
Base class for Vban
Instance Attribute Summary collapse
-
#instream ⇒ Object
readonly
Returns the value of attribute instream.
-
#outstream ⇒ Object
readonly
Returns the value of attribute outstream.
Instance Method Summary collapse
- #disable ⇒ Object
- #enable ⇒ Object
-
#initialize(remote) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(remote) ⇒ Base
Returns a new instance of Base.
80 81 82 83 84 85 86 |
# File 'lib/voicemeeter/vban.rb', line 80 def initialize(remote) vban_in, vban_out, midi, text = remote.kind.vban @instream = (0...vban_in + midi + text).map { RequestVbanStream.for(remote, _1, :in) } @outstream = (0...vban_out + midi).map { RequestVbanStream.for(remote, _1, :out) } @remote = remote end |
Instance Attribute Details
#instream ⇒ Object (readonly)
Returns the value of attribute instream.
78 79 80 |
# File 'lib/voicemeeter/vban.rb', line 78 def instream @instream end |
#outstream ⇒ Object (readonly)
Returns the value of attribute outstream.
78 79 80 |
# File 'lib/voicemeeter/vban.rb', line 78 def outstream @outstream end |
Instance Method Details
#disable ⇒ Object
92 93 94 |
# File 'lib/voicemeeter/vban.rb', line 92 def disable @remote.set("vban.enable", 0) end |
#enable ⇒ Object
88 89 90 |
# File 'lib/voicemeeter/vban.rb', line 88 def enable @remote.set("vban.enable", 1) end |