Function Channel.distance

Wraps Mix_SetDistance which sets the simulated distance for the channel playing from the listener

void distance (
  ubyte newDistance
) @property @trusted const;

Parameters

NameDescription
newDistance simulated distance from 0 to 255

Throws

dsdl2.SDLException if failed to set the distance