code: public void setMaxDistance (float distance)
      {
          if (_maxDistance != distance) {
              AL10.alSourcef(_id, AL10.AL_MAX_DISTANCE, _maxDistance = distance);
          }
      }
docs: Sets the maximum distance for attenuation.