PureBasic - Sound3D
The Sound3D library allows to handle sounds in 3D space. For example, it can handle automatic fading depending of the distance. It is based on the regular sound library syntax and behavior.
It uses the 3D engine, so InitEngine3D() has to be called successfully before using these functions.