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 IAudioSendSystem
createSendSystem(IPacketProvider packetProvider)
Called by JDA's audio system when a newIAudioSendSystem
instance 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: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.
-
-