Volume

class Volume(val gain: Float) : AudioSpec(source)

Keep the track at a scaled gain. Unlike a player's volume, this reaches the exported file.

Constructors

Link copied to clipboard
constructor(gain: Float)

Properties

Link copied to clipboard
val gain: Float

The scale to apply, where 1f is unchanged, 0f matches Mute and anything above 1f boosts. Has to be finite and not negative.