Class: Voicemeeter::Vban

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#instreamObject

Returns the value of attribute instream.



57
58
59
# File 'lib/voicemeeter/vban.rb', line 57

def instream
  @instream
end

#outstreamObject

Returns the value of attribute outstream.



57
58
59
# File 'lib/voicemeeter/vban.rb', line 57

def outstream
  @outstream
end

Instance Method Details

#disableObject



76
77
78
# File 'lib/voicemeeter/vban.rb', line 76

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

#enableObject



72
73
74
# File 'lib/voicemeeter/vban.rb', line 72

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