createAudioSender

abstract fun createAudioSender(frameProvider: AudioFrameProvider, distanceProvider: Supplier<Short>): AudioSender

Creates a new audio sender for this source.

Return

An audio sender.

Parameters

frameProvider

The audio frame provider.

distanceProvider

The provider of the maximum distance at which players can hear the audio.


open fun createAudioSender(frameProvider: AudioFrameProvider, distance: Short): AudioSender

Creates a new audio sender for this source with fixed distance.

Return

An audio sender.

Parameters

frameProvider

The audio frame provider.

distance

The maximum distance at which players can hear the audio.