send Audio Frame
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.
sequence Number
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.
sequence Number
The sequence number of the frame.
distance
The maximum distance at which players can hear the audio.
activation Info
The activation info for the audio packet.