Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rapptz/discord-ext-native-voice
/ functions
Functions
113 in github.com/Rapptz/discord-ext-native-voice
⨍
Functions
113
◇
Types & classes
33
↓ 15 callers
Method
len
(&self)
src/player.rs:150
↓ 8 callers
Function
custom_error
(text: &str)
src/error.rs:13
↓ 6 callers
Method
disconnect
(self, *, force=False)
discord/ext/native_voice/__init__.py:135
↓ 6 callers
Method
into
(self)
src/payloads.rs:272
↓ 5 callers
Method
wait_until_state
(&self, state: u8)
src/state.rs:81
↓ 4 callers
Method
extend_from_slice
(&mut self, other: &[u8])
src/player.rs:130
↓ 3 callers
Method
poll
(&mut self)
src/protocol.rs:153
↓ 3 callers
Method
speaking
(&mut self, flags: SpeakingFlags)
src/protocol.rs:355
↓ 2 callers
Method
clone_socket
(&self)
src/protocol.rs:117
↓ 2 callers
Function
code_can_be_handled
(code: u16)
src/lib.rs:20
↓ 2 callers
Method
connected
(&self)
src/state.rs:57
↓ 2 callers
Method
disconnected
(&self)
src/state.rs:51
↓ 2 callers
Method
finished
(&self)
src/state.rs:75
↓ 2 callers
Method
heartbeat
(&mut self)
src/protocol.rs:240
↓ 2 callers
Function
set_exception
(py: Python, loop_: PyObject, future: PyObject, exception: PyErr)
src/lib.rs:46
↓ 2 callers
Function
set_result
(py: Python, loop_: PyObject, future: PyObject, result: PyObject)
src/lib.rs:40
↓ 2 callers
Method
voice_disconnect
(self)
discord/ext/native_voice/__init__.py:62
↓ 1 callers
Method
as_mut
(&mut self)
src/player.rs:124
↓ 1 callers
Method
as_ref
(&self)
src/player.rs:118
↓ 1 callers
Function
audio_play_loop
( protocol: &Protocol, state: &Arc<PlayingState>, source: &Source, )
src/player.rs:329
↓ 1 callers
Method
auth
(&mut self, token: String)
src/protocol.rs:74
↓ 1 callers
Method
clone_state
(&self)
src/protocol.rs:124
↓ 1 callers
Method
close
(&mut self, code: u16)
src/protocol.rs:143
↓ 1 callers
Method
connect
(self, *, reconnect, timeout)
discord/ext/native_voice/__init__.py:66
↓ 1 callers
Method
connect
(self)
src/protocol.rs:79
↓ 1 callers
Method
encode_pcm_buffer
(&mut self)
src/player.rs:287
↓ 1 callers
Method
finish_flow
(&mut self, resume: bool)
src/protocol.rs:128
↓ 1 callers
Function
get_encoder
()
src/lib.rs:270
↓ 1 callers
Method
get_encryption_mode
(&self)
src/payloads.rs:295
↓ 1 callers
Method
get_socket
(&'a self)
src/protocol.rs:315
↓ 1 callers
Method
get_state
(&self, py: Python<'py>)
src/lib.rs:156
↓ 1 callers
Method
get_type
The audio type of this source If AudioType is Opus then the data will be passed as-is to discord
src/player.rs:36
↓ 1 callers
Method
handle_ready
(&mut self, payload: Ready)
src/protocol.rs:274
↓ 1 callers
Method
identify
(&mut self)
src/protocol.rs:249
↓ 1 callers
Method
is_disconnected
(&self)
src/state.rs:26
↓ 1 callers
Method
is_finished
(&self)
src/state.rs:46
↓ 1 callers
Method
is_paused
(&self)
src/player.rs:449
↓ 1 callers
Method
paused
(&self)
src/state.rs:69
↓ 1 callers
Method
playing
(&self)
src/state.rs:63
↓ 1 callers
Method
prepare_packet
Formulates the audio packet. By the time this function is called, the buffer should have the opus data already loaded at buffer[BUFFER_OFFSET..] Takes
src/player.rs:272
↓ 1 callers
Method
read_opus_frame
Same as read_pcm_frame except for opus encoded audio
src/player.rs:49
↓ 1 callers
Method
read_pcm_frame
(&mut self, buffer: &mut [i16])
src/player.rs:81
↓ 1 callers
Method
reconnect_handler
(self, reconnect, timeout)
discord/ext/native_voice/__init__.py:98
↓ 1 callers
Method
resume
(&mut self)
src/protocol.rs:262
↓ 1 callers
Method
run
(&mut self, py: Python, loop_: PyObject)
src/lib.rs:61
↓ 1 callers
Method
send_opus_packet
Sends already opus encoded data over the wire
src/player.rs:292
↓ 1 callers
Method
server
(&mut self, server_id: String)
src/protocol.rs:64
↓ 1 callers
Method
session
(&mut self, session_id: String)
src/protocol.rs:69
↓ 1 callers
Method
stop
(&mut self)
src/lib.rs:100
↓ 1 callers
Method
udp_discovery
(&mut self)
src/protocol.rs:322
↓ 1 callers
Method
update_socket
( &mut self, token: String, server_id: String, endpoint: String, )
src/lib.rs:206
↓ 1 callers
Method
user
(&mut self, user_id: String)
src/protocol.rs:59
↓ 1 callers
Method
voice_connect
(self)
discord/ext/native_voice/__init__.py:58
↓ 1 callers
Method
wait_until_connected
(&self)
src/state.rs:99
↓ 1 callers
Method
wait_until_not_paused
(&self)
src/state.rs:88
Method
__init__
(self, client, channel)
discord/ext/native_voice/__init__.py:12
Method
_debug_info
(self)
discord/ext/native_voice/__init__.py:158
Function
_native_voice
(py: Python, m: &PyModule)
src/lib.rs:381
Method
connect
(&mut self, py: Python, loop_: PyObject)
src/lib.rs:219
Method
default
()
src/state.rs:17
Method
default
()
src/payloads.rs:150
Method
disconnect
(&mut self)
src/lib.rs:94
Method
drop
(&mut self)
src/player.rs:91
Method
encode_opus
(&self, py: Python<'py>, buffer: &PyBytes)
src/lib.rs:302
Method
encrypt
( &self, py: Python<'py>, nonce: &PyBytes, buffer: &PyBytes, )
src/lib.rs:320
Function
encrypt_xsalsa20_poly1305
( cipher: &XSalsa20Poly1305, _lite: u32, header: &[u8], data: &mut dyn Buffer, )
src/player.rs:190
Function
encrypt_xsalsa20_poly1305_lite
( cipher: &XSalsa20Poly1305, lite: u32, _header: &[u8], data: &mut dyn Buffer, )
src/player.rs:218
Function
encrypt_xsalsa20_poly1305_suffix
( cipher: &XSalsa20Poly1305, _lite: u32, _header: &[u8], data: &mut dyn Buffer, )
src/player.rs:204
Method
encryption_mode
(&self)
src/lib.rs:133
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/error.rs:19
Method
from
(err: error::ProtocolError)
src/lib.rs:29
Method
from
(err: serde_json::error::Error)
src/error.rs:47
Method
from_addr
(address: String, port: u16, mode: EncryptionMode)
src/payloads.rs:104
Method
from_protocol
(protocol: &DiscordVoiceProtocol)
src/player.rs:233
Method
from_str
(s: &str)
src/payloads.rs:284
Method
get_average_latency
(&self)
src/protocol.rs:232
Method
get_latency
(&self)
src/protocol.rs:228
Method
is_connected
(&self)
src/state.rs:31
Method
is_empty
(&self)
src/player.rs:154
Method
is_paused
(&self)
src/state.rs:41
Method
is_playing
(self)
discord/ext/native_voice/__init__.py:153
Method
is_playing
(&self)
src/lib.rs:124
Method
is_playing
(&self)
src/state.rs:36
Method
is_playing
(&self)
src/player.rs:453
Method
microphone
()
src/payloads.rs:172
Method
new
(endpoint: String)
src/protocol.rs:49
Method
new
()
src/lib.rs:196
Method
new
(info: ResumeInfo)
src/payloads.rs:43
Method
new
(input: &str)
src/player.rs:59
Method
now
()
src/payloads.rs:133
Method
off
()
src/payloads.rs:166
Method
on_voice_server_update
(self, data)
discord/ext/native_voice/__init__.py:37
Method
on_voice_state_update
(self, data)
discord/ext/native_voice/__init__.py:25
Method
pause
(&self)
src/player.rs:437
Method
play
(self, title)
discord/ext/native_voice/__init__.py:145
Method
play
(&mut self, input: String)
src/lib.rs:106
Method
prepare_packet
(&mut self, py: Python<'py>, buffer: &PyBytes)
src/lib.rs:335
Method
priority
()
src/payloads.rs:184
Method
read_pcm_frame
Reads a frame of audio (20ms 16-bit stereo 48000Hz) Returns Some(num) where num is number of frames written to the buffer Returns None if the audio so
src/player.rs:44
Method
resume
(&self)
src/player.rs:441
next →
1–100 of 113, ranked by callers