Class DefaultSendFactory
java.lang.Object
net.dv8tion.jda.api.audio.factory.DefaultSendFactory
- All Implemented Interfaces:
IAudioSendFactory
The default implementation of the
IAudioSendFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSendSystem(IPacketProvider packetProvider) Called by JDA's audio system when a newIAudioSendSysteminstance is needed to handle the sending of UDP audio packets to discord.
-
Constructor Details
-
DefaultSendFactory
public DefaultSendFactory()
-
-
Method Details
-
createSendSystem
Description copied from interface:IAudioSendFactoryCalled by JDA's audio system when a newIAudioSendSysteminstance is needed to handle the sending of UDP audio packets to discord.- Specified by:
createSendSystemin interfaceIAudioSendFactory- Parameters:
packetProvider- The connection provided to the newIAudioSendSystemobject for proper setup and usage.- Returns:
- The newly constructed IAudioSendSystem, ready for
IAudioSendSystem.start()to be called.
-