class FMOD::Core::BoolDescription
Structure
describing a boolean parameter for a DSP unit.
Public Class Methods
new(address = nil)
click to toggle source
@param address [Pointer, Integer, String
, nil] The address in memory
where the structure will be created from. If no address is given, new memory will be allocated.
Calls superclass method
# File lib/fmod/core/bool_description.rb, line 12 def initialize(address = nil) super(address, [TYPE_INT, TYPE_VOIDP], [:default, :names]) end
Public Instance Methods
default()
click to toggle source
@!attribute [r] default @return [Boolean] the default value for the parameter.
# File lib/fmod/core/bool_description.rb, line 18 def default self[:default] != 0 end