Interface IAudioSendFactory
-
- All Known Implementing Classes:
DefaultSendFactory
public interface IAudioSendFactory
Factory interface for the creation of newIAudioSendSystem
objects.
JDA, by default, usesDefaultSendFactory
for 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 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 IAudioSendSystem createSendSystem(@Nonnull IPacketProvider packetProvider)
Called by JDA's audio system when a newIAudioSendSystem
instance is needed to handle the sending of UDP audio packets to discord.- 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.
-
-