IAudioSendFactory
public class DefaultSendFactory extends java.lang.Object implements IAudioSendFactory
IAudioSendFactory
.Constructor | Description |
---|---|
DefaultSendFactory() |
Modifier and Type | Method | 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. |
public IAudioSendSystem createSendSystem(IPacketProvider packetProvider)
IAudioSendFactory
IAudioSendSystem
instance is needed to handle the sending of UDP audio packets to discord.createSendSystem
in interface IAudioSendFactory
packetProvider
- The connection provided to the new IAudioSendSystem
object for proper setup and usage.IAudioSendSystem.start()
to be called.