Module baal::effect::short [] [src]

this module allow to play short sound effects

volume = global_volume * effect_volume * distance(position,listener_position)

but once a sound effect is played at a volume it doesn't change its volume anymore

this can lead to weird effects for not so short sound effects and with moving source

Functions

play

play the sound effect at the volume: global_volume * effect_volume * distance(position, listener_position)

play_on_listener

play the sound effect at the position of the listener i.e. volume is global_volume * effect_volume

stop_all

stop all short sound effects