public interface IAudioSendFactory
IAudioSendSystem objects.
DefaultSendFactory for the
creation of its UDP audio packet sending system.
Implementations of this interface are provided to
JDABuilder.setAudioSendFactory(IAudioSendFactory).
| Modifier and Type | Method and Description |
|---|---|
IAudioSendSystem |
createSendSystem(IPacketProvider packetProvider)
Called by JDA's audio system when a new
IAudioSendSystem
instance is needed to handle the sending of UDP audio packets to discord. |
IAudioSendSystem createSendSystem(IPacketProvider packetProvider)
IAudioSendSystem
instance is needed to handle the sending of UDP audio packets to discord.packetProvider - The connection provided to the new IAudioSendSystem
object for proper setup and usage.IAudioSendSystem.start() to be called.