Channel.Distance (gb.sdl2.audio)

Property Distance As Integer

Return or set the distance from the listener.

  • 0 is the nearest.

  • 255 is the farthest.

This effect emulates a simple 3D audio effect. It's not all that realistic, but it can help improve some level of realism.

If you are looking for better positional audio, use gb.openal.