Class: Voicemeeter::Bus::Base
- Inherits:
-
Object
- Object
- Voicemeeter::Bus::Base
- Extended by:
- MetaFunctions
- Includes:
- IRemote, Mixins::Fades, Mixins::Return
- Defined in:
- lib/voicemeeter/bus.rb
Overview
Base class for Bus
Direct Known Subclasses
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#eq ⇒ Object
readonly
Returns the value of attribute eq.
-
#levels ⇒ Object
readonly
Returns the value of attribute levels.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
Class Method Summary collapse
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(remote, i) ⇒ Base
constructor
A new instance of Base.
Methods included from Mixins::Fades
Methods included from IRemote
Methods included from Logging
Constructor Details
Instance Attribute Details
#device ⇒ Object (readonly)
Returns the value of attribute device.
10 11 12 |
# File 'lib/voicemeeter/bus.rb', line 10 def device @device end |
#eq ⇒ Object (readonly)
Returns the value of attribute eq.
10 11 12 |
# File 'lib/voicemeeter/bus.rb', line 10 def eq @eq end |
#levels ⇒ Object (readonly)
Returns the value of attribute levels.
10 11 12 |
# File 'lib/voicemeeter/bus.rb', line 10 def levels @levels end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
10 11 12 |
# File 'lib/voicemeeter/bus.rb', line 10 def mode @mode end |
Class Method Details
.make(remote, i) ⇒ Object
15 16 17 |
# File 'lib/voicemeeter/bus.rb', line 15 def self.make(remote, i) (i < remote.kind.phys_out) ? PhysicalBus.new(remote, i) : VirtualBus.new(remote, i) end |
Instance Method Details
#identifier ⇒ Object
27 28 29 |
# File 'lib/voicemeeter/bus.rb', line 27 def identifier "bus[#{@index}]" end |