|
This function will set the volume of the given sound.
volume should be in the range of [0-1000] . 1000 is the maximum valume possible.
100 is the default volume.
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_realtime()
Is that this function works even if the sound is not being played.
If you intend to use a specific sound in a constant volume then
it is better to use STATE_sound_set_volume() then STATE_sound_set_volume_realtime().
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.
|