Class: FMOD::Core::BoolDescription

Inherits:
Structure
  • Object
show all
Defined in:
lib/fmod/core/bool_description.rb

Overview

Structure describing a boolean parameter for a DSP unit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Structure

#inspect, #names, #values

Constructor Details

#initialize(address = nil) ⇒ BoolDescription

Returns a new instance of BoolDescription.

Parameters:

  • address (Pointer, Integer, String, nil) (defaults to: nil)

    The address in memory where the structure will be created from. If no address is given, new memory will be allocated.



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

#defaultBoolean (readonly)

Returns the default value for the parameter.

Returns:

  • (Boolean)

    the default value for the parameter.



18
19
20
# File 'lib/fmod/core/bool_description.rb', line 18

def default
  self[:default] != 0
end