Class: FMOD::Core::BoolDescription
- Defined in:
- lib/fmod/core/bool_description.rb
Overview
Structure describing a boolean parameter for a DSP unit.
Instance Attribute Summary collapse
-
#default ⇒ Boolean
readonly
The default value for the parameter.
Instance Method Summary collapse
-
#initialize(address = nil) ⇒ BoolDescription
constructor
A new instance of BoolDescription.
Methods inherited from Structure
Constructor Details
#initialize(address = nil) ⇒ BoolDescription
Returns a new instance of BoolDescription.
12 13 14 |
# File 'lib/fmod/core/bool_description.rb', line 12 def initialize(address = nil) super(address, [TYPE_INT, TYPE_VOIDP], [:default, :names]) end |
Instance Attribute Details
#default ⇒ Boolean (readonly)
Returns the default value for the parameter.
18 19 20 |
# File 'lib/fmod/core/bool_description.rb', line 18 def default self[:default] != 0 end |