send Audio Packet
Sends an audio packet to players within the specified distance with null activation info.
Return
true
if the packet was successfully sent, false
otherwise.
Parameters
packet
The audio packet to send.
distance
The maximum distance at which players can hear the audio.
abstract fun sendAudioPacket(packet: SourceAudioPacket, distance: Short, activationInfo: PlayerActivationInfo?): Boolean
Sends an audio packet to players within the specified distance with an activation info.
Return
true
if the packet was successfully sent, false
otherwise.
Parameters
packet
The audio packet to send.
distance
The maximum distance at which players can hear the audio.
activation Info
The activation info for the audio packet.