Class: FMOD::Core::ConeSettings

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

Overview

Defines the sound projection cone including the volume when outside the cone.

Instance Attribute Summary collapse

Instance Attribute Details

#inside_angleFloat

Inside cone angle, in degrees. This is the angle within which the sound is at its normal volume.

Must not be greater than #outside_angle.

  • Default: 360.0

Returns:

  • (Float)

    the current value of inside_angle



40
41
42
# File 'lib/fmod/core/structures.rb', line 40

def inside_angle
  @inside_angle
end

#outside_angleFloat

Outside cone angle, in degrees. This is the angle outside of which the sound is at its outside volume.

Must not be less than #inside_angle.

  • Default: 360.0

Returns:

  • (Float)

    the current value of outside_angle



40
41
42
# File 'lib/fmod/core/structures.rb', line 40

def outside_angle
  @outside_angle
end

#outside_volumeFloat

Cone outside volume.

  • Minimum: 0.0

  • Maximum: 1.0

  • Default: 1.0

Returns:

  • (Float)

    the current value of outside_volume



40
41
42
# File 'lib/fmod/core/structures.rb', line 40

def outside_volume
  @outside_volume
end