Class DefaultSendFactory
- java.lang.Object
-
- net.dv8tion.jda.api.audio.factory.DefaultSendFactory
-
- All Implemented Interfaces:
IAudioSendFactory
public class DefaultSendFactory extends java.lang.Object implements IAudioSendFactory
The default implementation of theIAudioSendFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultSendFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAudioSendSystemcreateSendSystem(IPacketProvider packetProvider)Called by JDA's audio system when a newIAudioSendSysteminstance is needed to handle the sending of UDP audio packets to discord.
-
-
-
Method Detail
-
createSendSystem
@Nonnull public IAudioSendSystem createSendSystem(@Nonnull IPacketProvider packetProvider)
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.
-
-