setPan

open override fun setPan(pan: Float): ERROR CLASS: Unresolved name: SetMusicPan

Sets the pan of the audio, which can be set between 0.0 and 1.0. A pan of 0.0 means the audio is fully left, 1.0 means the audio is fully right, and 0.5 means the audio is centered (default).

Parameters

pan

The pan value to set, which must be between 0.0 and 1.0.

Throws

IllegalArgumentException

if the pan value is not between 0.0 and 1.0.