AmbientAudioComponent
constructor()
Creates a new AmbientAudioComponent with default settings.
constructor(@FloatRange(from = 0.0, to = 1.0) volume: Float = 1.0f)
Creates an AmbientAudioComponent instance with the specified volume.
Parameters
volume
The volume to set. The valid value range is [0.0, 1.0]. The default value is 1.0f. If the specified volume value is not in the valid range, the default value will be used.