public class AudioConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
CONNECTION_TIMEOUT |
static int |
OPUS_CHANNEL_COUNT |
static int |
OPUS_FRAME_SIZE |
static int |
OPUS_FRAME_TIME_AMOUNT |
static int |
OPUS_SAMPLE_RATE |
Constructor and Description |
---|
AudioConnection(AudioWebSocket webSocket,
VoiceChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
VoiceChannel |
getChannel() |
Guild |
getGuild() |
JDA |
getJDA() |
void |
ready() |
void |
setChannel(VoiceChannel channel) |
void |
setReceivingHandler(AudioReceiveHandler handler) |
void |
setSendingHandler(AudioSendHandler handler) |
public static final long CONNECTION_TIMEOUT
public static final int OPUS_SAMPLE_RATE
public static final int OPUS_FRAME_SIZE
public static final int OPUS_FRAME_TIME_AMOUNT
public static final int OPUS_CHANNEL_COUNT
public AudioConnection(AudioWebSocket webSocket, VoiceChannel channel)
public void ready()
public void setSendingHandler(AudioSendHandler handler)
public void setReceivingHandler(AudioReceiveHandler handler)
public VoiceChannel getChannel()
public void setChannel(VoiceChannel channel)
public JDA getJDA()
public Guild getGuild()
public void close()