Class: FMOD::ChannelControl::DistanceFilter

Inherits:
Struct
  • Object
show all
Defined in:
lib/fmod/channel_control.rb

Overview

The settings for the 3D distance filter properties.

Instance Attribute Summary collapse

Instance Attribute Details

#customBoolean

The enabled/disabled state of the FMOD distance rolloff calculation. Default is false.

Returns:

  • (Boolean)

    the current value of custom



191
192
193
# File 'lib/fmod/channel_control.rb', line 191

def custom
  @custom
end

#frequencyFloat

The center frequency in Hz for the high-pass filter used to simulate distance attenuation, from 10.0 to 22050.0. Default is 1500.0.

Returns:

  • (Float)

    the current value of frequency



191
192
193
# File 'lib/fmod/channel_control.rb', line 191

def frequency
  @frequency
end

#levelFloat

The manual user attenuation, where 1.0 is no attenuation and 0.0 is complete attenuation. Default is 1.0.

Returns:

  • (Float)

    the current value of level



191
192
193
# File 'lib/fmod/channel_control.rb', line 191

def level
  @level
end