Class: Voicemeeter::VbanStream

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

Direct Known Subclasses

VbanInstream, VbanOutstream

Instance Method Summary collapse

Methods included from Conversions

Boolean

Methods inherited from IRemote

#getter, #set_multi, #setter, #to_s

Constructor Details

#initialize(remote, i) ⇒ VbanStream

Returns a new instance of VbanStream.



12
13
14
15
16
17
# File 'lib/voicemeeter/vban.rb', line 12

def initialize(remote, i)
  super
  self.make_accessor_bool :on
  self.make_accessor_string :name, :ip
  self.make_accessor_int :quality, :route
end

Instance Method Details

#directionObject



23
24
25
# File 'lib/voicemeeter/vban.rb', line 23

def direction
  raise "Called abstract mehod: direction"
end

#identifierObject



19
20
21
# File 'lib/voicemeeter/vban.rb', line 19

def identifier
  "vban.#{self.direction}stream[#{@index}]"
end