Sound

7.  Optional:  3D Sound
  • 3D Sound:  Enabled
     
  • Minimum Gain:  0.0
     
  • Maximun Gain: 1.0
     
  • Reference Distance:  5.0
     
  • Maximum Distance:  30.0
     
  • Rolloff:  1.0
Note:
  • 3D Sound enabled: volume depends on player distance from game object.
Sound Files:  wav and ogg
  • Minimum Gain:  Minimum volume to play the sound.
Range:  0.0 to 1.0
     0.0 = no sound
     1.0 = Maximun sound
  • Maximum Gain:  Maximum volume to play the sound.
Range:  0.0 to 1.0
     0.0 = no sound
     1.0 = Maximun sound
  • Reference Distance:  Distance from player that the volume equals Maximum Gain
  • Maximum Distance:  Maximum distance from object that player can hear the sound.
  • Rolloff:  Amount that the volume of the sound decreases with the distance.
Range:  0.0 to 5.0
     0.0 = no falloff
     5.0 = maximum falloff
  • Cone Outer Gain:  Volume of the sound outside the outer cone
  • Cone Outer Angle:  Angle of the outer cone.
Range:  0 to 360 degrees
  • Cone Inner Angle:  Angle of the inner cone.

Range:  0 to 360 degrees

8.  Optional:  Distance Model  (3D Sound) 
  • Properties menu >> Scene button >> Audio tab

  • Listener:  Linear

Note:
  • The Distance Model is used to calculate how the sound fades with distance.
  • Types of Distance Models
  • None
  • Inverse
  • Inverse Clamped
  • Linear
  • Linear Clamped
  • Exponent
  • Exponent Clamped
9.  Connect Logic Bricks
  • Always Sensor >> And Controller >> Sound Actuator
Note:
  • To connect logic bricks, pull 'wire' from logic brick output to logic brick input