local uid = playSound(SOUNDID(rain))
playSound(SOUNDID(bigBang))
playSound("event:/objects/doors/door_open")
playSound(SOUNDID(typing),GLOBAL)
The last form is not recommended as it is slower than using
defineSound() and scatters the path information about sounds throughout the source code, making them harder to change globally.
If you don't pass the global option, the sound will be local and killed when leaving the room.
playSound() returns a uid for the playing sound. If you don't need to manipulate the sound once it's playing, the return can be ignored.