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