Class LocalVoiceReceiveTaskFactory

    • Constructor Detail

      • LocalVoiceReceiveTaskFactory

        public LocalVoiceReceiveTaskFactory()
    • Method Detail

      • create

        public Disposable create​(Scheduler scheduler,
                                 Flux<ByteBuf> in,
                                 discord4j.voice.PacketTransformer transformer,
                                 AudioReceiver receiver)
        Description copied from interface: VoiceReceiveTaskFactory
        Create a task that is capable of handling incoming audio packets.
        Specified by:
        create in interface VoiceReceiveTaskFactory
        scheduler - a dedicated Scheduler that can be used to run the task
        in - a sequence of raw incoming audio ByteBuf packets
        transformer - a strategy to decode a packet from a raw ByteBuf
        receiver - a strategy to consume decoded audio packets
        a task that can receive audio and process it