Interface IAudioSendFactory
-
- All Known Implementing Classes:
DefaultSendFactory
public interface IAudioSendFactoryFactory interface for the creation of newIAudioSendSystemobjects.
JDA, by default, usesDefaultSendFactoryfor the creation of its UDP audio packet sending system.Implementations of this interface are provided to
JDABuilder.setAudioSendFactory(IAudioSendFactory).
-
-
Method Summary
All Methods Instance Methods Abstract 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 IAudioSendSystem createSendSystem(@Nonnull IPacketProvider packetProvider)
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.
-
-