One positional one-shot: a Sound attached to a point in the world, heard from a
listener with the distance gain audioGain computes. playFor applies that gain through
Sound.play(gain), and stays silent past maxDistance rather than playing at volume 0.
Long-running position (a waterfall, an engine) is the game's own loop calling playFor on
a cadence it chooses; this is the placement and the mix, not a scheduler.
One positional one-shot: a
Soundattached to a point in the world, heard from a listener with the distance gainaudioGaincomputes.playForapplies that gain throughSound.play(gain), and stays silent pastmaxDistancerather than playing at volume 0.Long-running position (a waterfall, an engine) is the game's own loop calling
playForon a cadence it chooses; this is the placement and the mix, not a scheduler.Example