Interface IAudioSendFactory
- All Known Implementing Classes:
DefaultSendFactory
public interface IAudioSendFactory
Factory interface for the creation of new
JDA, by default, uses
IAudioSendSystem objects.
JDA, by default, uses
DefaultSendFactory for the
creation of its UDP audio packet sending system.
Implementations of this interface are provided to
JDABuilder.setAudioSendFactory(IAudioSendFactory).
-
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.
-
Method Details
-
createSendSystem
Called by JDA's audio system when a newIAudioSendSysteminstance is needed to handle the sending of UDP audio packets to discord.- 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.
-