Class: Voicemeeter::Bus::BusModes

Inherits:
Object
  • Object
show all
Extended by:
MetaFunctions
Includes:
IRemote
Defined in:
lib/voicemeeter/bus.rb

Instance Method Summary collapse

Methods included from IRemote

#apply, #initialize, #to_s

Methods included from Logging

#logger

Instance Method Details

#getObject



70
71
72
73
74
75
76
77
78
# File 'lib/voicemeeter/bus.rb', line 70

def get
  sleep(@remote.delay)
  %i[amix bmix repeat composite tvmix upmix21 upmix41 upmix61 centeronly lfeonly rearonly].each do |mode|
    if send(mode)
      return mode
    end
  end
  :normal
end

#identifierObject



66
67
68
# File 'lib/voicemeeter/bus.rb', line 66

def identifier
  "bus[#{@index}].mode"
end