Class: Voicemeeter::Remote

Inherits:
Base
  • Object
show all
Includes:
Kinds
Defined in:
lib/voicemeeter/remote.rb

Constant Summary

Constants inherited from Base

Base::DELAY, Base::RATELIMIT, Base::SIZE, Base::SYNC

Instance Attribute Summary

Attributes inherited from Base

#_bus_comp, #_strip_comp, #bus, #button, #cache, #command, #delay, #device, #event, #kind, #midi, #p_in, #p_out, #recorder, #retval, #running, #strip, #strip_mode, #v_in, #v_out, #vban

Instance Method Summary collapse

Methods included from Kinds

get_kind, kind_map, kinds_all

Methods inherited from Base

#_get_levels, #get_buttonstatus, #get_device_description, #get_level, #get_midi_message, #get_num_devices, #get_parameter, #login, #logout, #set_buttonstatus, #set_parameter, #set_parameter_multi, #to_s, #type, #version

Methods included from Worker

#end_worker, #init_worker

Methods included from RunVM

#start

Methods included from CBindings

#clear_polling, #ldirty?, #mdirty?, #pdirty?

Methods included from Configs

#set_config

Constructor Details

#initialize(kind, **kwargs) ⇒ Remote

Returns a new instance of Remote.



15
16
17
18
19
20
21
22
23
24
# File 'lib/voicemeeter/remote.rb', line 15

def initialize(kind, **kwargs)
  super
  self.strip = Strip.make(self, kind.layout[:strip])
  self.bus = Bus.make(self, kind.layout[:bus])
  self.button = MacroButton.make(self, kind.layout[:mb])
  self.vban = Vban.new(self, kind.layout[:vban])
  self.command = Command.new(self)
  self.recorder = Recorder.new(self)
  self.device = Device.new(self)
end

Instance Method Details

#runObject



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/voicemeeter/remote.rb', line 26

def run
  "
  Handles login/logout

  Starts/stops the observable thread.
  "
  
  init_worker

  yield if block_given?
ensure
  end_worker
  logout
end