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