Drop the Looping Sound Emitter into your domain to easily create looping background audio without scripting! Simply edit the UserData parameters of this entity to specify the sound file URL and volume. This system can use any 48K hz 16-bit PCM wav file as an audio source.
If you'd like to hide the 3D speaker model, provided as a reference, simply uncheck the Visible box. The script updates the position of the sound emitter at regular intervals, which you can specify in the refreshInterval value. If your sound emitter doesn't need to move, just leave it as is.