setVolume

abstract fun setVolume(volume: Float)

Sets the volume of the audio source.

Parameters

volume

The volume value to set.