public interface VoiceReceiveTaskFactory
AudioReceiver
.Modifier and Type | Method and Description |
---|---|
Disposable |
create(Scheduler scheduler,
Flux<ByteBuf> in,
discord4j.voice.PacketTransformer transformer,
AudioReceiver receiver)
Create a task that is capable of handling incoming audio packets.
|
Disposable create(Scheduler scheduler, Flux<ByteBuf> in, discord4j.voice.PacketTransformer transformer, AudioReceiver receiver)
scheduler
- a dedicated Scheduler
that can be used to run the taskin
- a sequence of raw incoming audio ByteBuf
packetstransformer
- a strategy to decode a packet from a raw ByteBuf
receiver
- a strategy to consume decoded audio packets