Class: Voicemeeter::Vban::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/voicemeeter/vban.rb

Overview

Base class for Vban

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#instreamObject (readonly)

Returns the value of attribute instream.



78
79
80
# File 'lib/voicemeeter/vban.rb', line 78

def instream
  @instream
end

#outstreamObject (readonly)

Returns the value of attribute outstream.



78
79
80
# File 'lib/voicemeeter/vban.rb', line 78

def outstream
  @outstream
end

Instance Method Details

#disableObject



92
93
94
# File 'lib/voicemeeter/vban.rb', line 92

def disable
  @remote.set("vban.enable", 0)
end

#enableObject



88
89
90
# File 'lib/voicemeeter/vban.rb', line 88

def enable
  @remote.set("vban.enable", 1)
end