sendAudioFrame

open fun sendAudioFrame(frame: ByteArray, sequenceNumber: Long, distance: Short): Boolean

Sends an encoded and encrypted audio frame to players within the specified distance with null activation info.

Return

true if the packet was successfully sent, false otherwise.

Parameters

frame

The frame to send.

sequenceNumber

The sequence number of the frame.

distance

The maximum distance at which players can hear the audio.


open fun sendAudioFrame(frame: ByteArray, sequenceNumber: Long, distance: Short, activationInfo: PlayerActivationInfo?): Boolean

Sends an encoded and encrypted audio frame to players within the specified distance with activation info.

Return

true if the packet was successfully sent, false otherwise.

Parameters

frame

The frame to send.

sequenceNumber

The sequence number of the frame.

distance

The maximum distance at which players can hear the audio.

activationInfo

The activation info for the audio packet.