setAttenuation

fun setAttenuation(model: Int): Sound

Sets the attenuation (fade out over space) of the song. Models are: NONE(0) - no fade ROLLOFF(1) - this is the default, meant to be somewhat realistic LINEAR(2) - fades out linearly, as the name implies

Parameters

model

the model

Sources

Link copied to clipboard