Class: Voicemeeter::Remote
- 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
-
#initialize(kind, **kwargs) ⇒ Remote
constructor
A new instance of Remote.
- #run ⇒ Object
Methods included from Kinds
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
Methods included from RunVM
Methods included from CBindings
#clear_polling, #ldirty?, #mdirty?, #pdirty?
Methods included from Configs
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. = 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
#run ⇒ Object
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. " login init_worker yield if block_given? ensure end_worker logout end |