STATE_sound_set_volume_realtime

 

 


  This function will set the volume of the given sound.
  See also STATE_sound_set_volume()
  volume should be in the range of [0-1000] . 1000 is the maximum valume possible.
  The difference between this function and STATE_sound_set_volume()
  Is that this function works only while the sound is being played.
  If you intend to use a specific sound in a constant volume then
  it is better to use STATE_sound_set_volume().
  Note that if the sound is attached to an entity (object, polygon or group)
  then actual volume will be effected by the distance of the viewer\listener from the
  sound source. Note also that you can use
  STATE_sound_set_distance_reach() to effect the result calculated volume.
  This is important because if the listener is located outside the distance reach
  zone then no sound will be heard.

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com