diff --git a/current/help.html b/current/help.html index 8db868201..346184f67 100644 --- a/current/help.html +++ b/current/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/current/settings.html b/current/settings.html index 8482fbf74..5785d28c6 100644 --- a/current/settings.html +++ b/current/settings.html @@ -1 +1 @@ -Settings

Rustdoc settings

Back
\ No newline at end of file +Settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/current/songbird/all.html b/current/songbird/all.html index 88e76f639..5cd2518f6 100644 --- a/current/songbird/all.html +++ b/current/songbird/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Statics

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Statics

Constants

\ No newline at end of file diff --git a/current/songbird/constants/constant.AUDIO_FRAME_RATE.html b/current/songbird/constants/constant.AUDIO_FRAME_RATE.html index 1ba766ce2..2e7f1c6d3 100644 --- a/current/songbird/constants/constant.AUDIO_FRAME_RATE.html +++ b/current/songbird/constants/constant.AUDIO_FRAME_RATE.html @@ -1,2 +1,2 @@ -AUDIO_FRAME_RATE in songbird::constants - Rust
songbird::constants

Constant AUDIO_FRAME_RATE

Source
pub const AUDIO_FRAME_RATE: usize = 50;
Expand description

Number of audio frames/packets to be sent per second.

+AUDIO_FRAME_RATE in songbird::constants - Rust
songbird::constants

Constant AUDIO_FRAME_RATE

Source
pub const AUDIO_FRAME_RATE: usize = 50;
Expand description

Number of audio frames/packets to be sent per second.

\ No newline at end of file diff --git a/current/songbird/constants/constant.CHILD_BUFFER_LEN.html b/current/songbird/constants/constant.CHILD_BUFFER_LEN.html index dca75976b..0021bfd57 100644 --- a/current/songbird/constants/constant.CHILD_BUFFER_LEN.html +++ b/current/songbird/constants/constant.CHILD_BUFFER_LEN.html @@ -1,2 +1,2 @@ -CHILD_BUFFER_LEN in songbird::constants - Rust
songbird::constants

Constant CHILD_BUFFER_LEN

Source
pub const CHILD_BUFFER_LEN: usize = _; // 25usize
Expand description

Maximum number of audio frames/packets to be sent per second to be buffered.

+CHILD_BUFFER_LEN in songbird::constants - Rust
songbird::constants

Constant CHILD_BUFFER_LEN

Source
pub const CHILD_BUFFER_LEN: usize = _; // 25usize
Expand description

Maximum number of audio frames/packets to be sent per second to be buffered.

\ No newline at end of file diff --git a/current/songbird/constants/constant.DEFAULT_BITRATE.html b/current/songbird/constants/constant.DEFAULT_BITRATE.html index 60e186117..30cad7715 100644 --- a/current/songbird/constants/constant.DEFAULT_BITRATE.html +++ b/current/songbird/constants/constant.DEFAULT_BITRATE.html @@ -1,2 +1,2 @@ -DEFAULT_BITRATE in songbird::constants - Rust
songbird::constants

Constant DEFAULT_BITRATE

Source
pub const DEFAULT_BITRATE: Bitrate;
Expand description

Default bitrate for audio.

+DEFAULT_BITRATE in songbird::constants - Rust
songbird::constants

Constant DEFAULT_BITRATE

Source
pub const DEFAULT_BITRATE: Bitrate;
Expand description

Default bitrate for audio.

\ No newline at end of file diff --git a/current/songbird/constants/constant.FRAME_LEN_MS.html b/current/songbird/constants/constant.FRAME_LEN_MS.html index a8c742457..de8e23734 100644 --- a/current/songbird/constants/constant.FRAME_LEN_MS.html +++ b/current/songbird/constants/constant.FRAME_LEN_MS.html @@ -1,2 +1,2 @@ -FRAME_LEN_MS in songbird::constants - Rust
songbird::constants

Constant FRAME_LEN_MS

Source
pub const FRAME_LEN_MS: usize = _; // 20usize
Expand description

Length (in milliseconds) of any audio frame.

+FRAME_LEN_MS in songbird::constants - Rust
songbird::constants

Constant FRAME_LEN_MS

Source
pub const FRAME_LEN_MS: usize = _; // 20usize
Expand description

Length (in milliseconds) of any audio frame.

\ No newline at end of file diff --git a/current/songbird/constants/constant.MONO_FRAME_BYTE_SIZE.html b/current/songbird/constants/constant.MONO_FRAME_BYTE_SIZE.html index e60bb5a76..6815cf859 100644 --- a/current/songbird/constants/constant.MONO_FRAME_BYTE_SIZE.html +++ b/current/songbird/constants/constant.MONO_FRAME_BYTE_SIZE.html @@ -1,2 +1,2 @@ -MONO_FRAME_BYTE_SIZE in songbird::constants - Rust
songbird::constants

Constant MONO_FRAME_BYTE_SIZE

Source
pub const MONO_FRAME_BYTE_SIZE: usize = _; // 3_840usize
Expand description

Number of bytes in one complete frame of raw f32-encoded mono audio.

+MONO_FRAME_BYTE_SIZE in songbird::constants - Rust
songbird::constants

Constant MONO_FRAME_BYTE_SIZE

Source
pub const MONO_FRAME_BYTE_SIZE: usize = _; // 3_840usize
Expand description

Number of bytes in one complete frame of raw f32-encoded mono audio.

\ No newline at end of file diff --git a/current/songbird/constants/constant.MONO_FRAME_SIZE.html b/current/songbird/constants/constant.MONO_FRAME_SIZE.html index 36c8d816a..c4cdac7f2 100644 --- a/current/songbird/constants/constant.MONO_FRAME_SIZE.html +++ b/current/songbird/constants/constant.MONO_FRAME_SIZE.html @@ -1,3 +1,3 @@ -MONO_FRAME_SIZE in songbird::constants - Rust
songbird::constants

Constant MONO_FRAME_SIZE

Source
pub const MONO_FRAME_SIZE: usize = _; // 960usize
Expand description

Number of samples in one complete frame of audio per channel.

+MONO_FRAME_SIZE in songbird::constants - Rust
songbird::constants

Constant MONO_FRAME_SIZE

Source
pub const MONO_FRAME_SIZE: usize = _; // 960usize
Expand description

Number of samples in one complete frame of audio per channel.

This is equally the number of stereo (joint) samples in an audio frame.

\ No newline at end of file diff --git a/current/songbird/constants/constant.RTP_PROFILE_TYPE.html b/current/songbird/constants/constant.RTP_PROFILE_TYPE.html index 396ee1bcc..001cc0cef 100644 --- a/current/songbird/constants/constant.RTP_PROFILE_TYPE.html +++ b/current/songbird/constants/constant.RTP_PROFILE_TYPE.html @@ -1,2 +1,2 @@ -RTP_PROFILE_TYPE in songbird::constants - Rust
songbird::constants

Constant RTP_PROFILE_TYPE

Source
pub const RTP_PROFILE_TYPE: RtpType;
Expand description

Profile type used by Discord’s Opus audio traffic.

+RTP_PROFILE_TYPE in songbird::constants - Rust
songbird::constants

Constant RTP_PROFILE_TYPE

Source
pub const RTP_PROFILE_TYPE: RtpType;
Expand description

Profile type used by Discord’s Opus audio traffic.

\ No newline at end of file diff --git a/current/songbird/constants/constant.RTP_VERSION.html b/current/songbird/constants/constant.RTP_VERSION.html index ce21fbe11..f0a3dca92 100644 --- a/current/songbird/constants/constant.RTP_VERSION.html +++ b/current/songbird/constants/constant.RTP_VERSION.html @@ -1,2 +1,2 @@ -RTP_VERSION in songbird::constants - Rust
songbird::constants

Constant RTP_VERSION

Source
pub const RTP_VERSION: u8 = 2;
Expand description

The one (and only) RTP version.

+RTP_VERSION in songbird::constants - Rust
songbird::constants

Constant RTP_VERSION

Source
pub const RTP_VERSION: u8 = 2;
Expand description

The one (and only) RTP version.

\ No newline at end of file diff --git a/current/songbird/constants/constant.SAMPLE_RATE.html b/current/songbird/constants/constant.SAMPLE_RATE.html index 86aeccba6..16dd17739 100644 --- a/current/songbird/constants/constant.SAMPLE_RATE.html +++ b/current/songbird/constants/constant.SAMPLE_RATE.html @@ -1,2 +1,2 @@ -SAMPLE_RATE in songbird::constants - Rust
songbird::constants

Constant SAMPLE_RATE

Source
pub const SAMPLE_RATE: SampleRate;
Expand description

Sample rate of audio to be sent to Discord.

+SAMPLE_RATE in songbird::constants - Rust
songbird::constants

Constant SAMPLE_RATE

Source
pub const SAMPLE_RATE: SampleRate;
Expand description

Sample rate of audio to be sent to Discord.

\ No newline at end of file diff --git a/current/songbird/constants/constant.SAMPLE_RATE_RAW.html b/current/songbird/constants/constant.SAMPLE_RATE_RAW.html index 83ac4c160..fd8bfe7e5 100644 --- a/current/songbird/constants/constant.SAMPLE_RATE_RAW.html +++ b/current/songbird/constants/constant.SAMPLE_RATE_RAW.html @@ -1,2 +1,2 @@ -SAMPLE_RATE_RAW in songbird::constants - Rust
songbird::constants

Constant SAMPLE_RATE_RAW

Source
pub const SAMPLE_RATE_RAW: usize = 48_000;
Expand description

Sample rate of audio to be sent to Discord.

+SAMPLE_RATE_RAW in songbird::constants - Rust
songbird::constants

Constant SAMPLE_RATE_RAW

Source
pub const SAMPLE_RATE_RAW: usize = 48_000;
Expand description

Sample rate of audio to be sent to Discord.

\ No newline at end of file diff --git a/current/songbird/constants/constant.SILENT_FRAME.html b/current/songbird/constants/constant.SILENT_FRAME.html index 9cbbc3d0c..c17d33e7d 100644 --- a/current/songbird/constants/constant.SILENT_FRAME.html +++ b/current/songbird/constants/constant.SILENT_FRAME.html @@ -1,2 +1,2 @@ -SILENT_FRAME in songbird::constants - Rust
songbird::constants

Constant SILENT_FRAME

Source
pub const SILENT_FRAME: [u8; 3];
Expand description

Opus silent frame, used to signal speech start and end (and prevent audio glitching).

+SILENT_FRAME in songbird::constants - Rust
songbird::constants

Constant SILENT_FRAME

Source
pub const SILENT_FRAME: [u8; 3];
Expand description

Opus silent frame, used to signal speech start and end (and prevent audio glitching).

\ No newline at end of file diff --git a/current/songbird/constants/constant.STEREO_FRAME_BYTE_SIZE.html b/current/songbird/constants/constant.STEREO_FRAME_BYTE_SIZE.html index 2139c7dfa..68d4ff141 100644 --- a/current/songbird/constants/constant.STEREO_FRAME_BYTE_SIZE.html +++ b/current/songbird/constants/constant.STEREO_FRAME_BYTE_SIZE.html @@ -1,2 +1,2 @@ -STEREO_FRAME_BYTE_SIZE in songbird::constants - Rust
songbird::constants

Constant STEREO_FRAME_BYTE_SIZE

Source
pub const STEREO_FRAME_BYTE_SIZE: usize = _; // 7_680usize
Expand description

Number of bytes in one complete frame of raw f32-encoded stereo audio.

+STEREO_FRAME_BYTE_SIZE in songbird::constants - Rust
songbird::constants

Constant STEREO_FRAME_BYTE_SIZE

Source
pub const STEREO_FRAME_BYTE_SIZE: usize = _; // 7_680usize
Expand description

Number of bytes in one complete frame of raw f32-encoded stereo audio.

\ No newline at end of file diff --git a/current/songbird/constants/constant.STEREO_FRAME_SIZE.html b/current/songbird/constants/constant.STEREO_FRAME_SIZE.html index 1d79223a3..3074e811a 100644 --- a/current/songbird/constants/constant.STEREO_FRAME_SIZE.html +++ b/current/songbird/constants/constant.STEREO_FRAME_SIZE.html @@ -1,2 +1,2 @@ -STEREO_FRAME_SIZE in songbird::constants - Rust
songbird::constants

Constant STEREO_FRAME_SIZE

Source
pub const STEREO_FRAME_SIZE: usize = _; // 1_920usize
Expand description

Number of individual samples in one complete frame of stereo audio.

+STEREO_FRAME_SIZE in songbird::constants - Rust
songbird::constants

Constant STEREO_FRAME_SIZE

Source
pub const STEREO_FRAME_SIZE: usize = _; // 1_920usize
Expand description

Number of individual samples in one complete frame of stereo audio.

\ No newline at end of file diff --git a/current/songbird/constants/constant.TIMESTEP_LENGTH.html b/current/songbird/constants/constant.TIMESTEP_LENGTH.html index 7e96140ad..57f9d00df 100644 --- a/current/songbird/constants/constant.TIMESTEP_LENGTH.html +++ b/current/songbird/constants/constant.TIMESTEP_LENGTH.html @@ -1,2 +1,2 @@ -TIMESTEP_LENGTH in songbird::constants - Rust
songbird::constants

Constant TIMESTEP_LENGTH

Source
pub const TIMESTEP_LENGTH: Duration;
Expand description

Length of time between any two audio frames.

+TIMESTEP_LENGTH in songbird::constants - Rust
songbird::constants

Constant TIMESTEP_LENGTH

Source
pub const TIMESTEP_LENGTH: Duration;
Expand description

Length of time between any two audio frames.

\ No newline at end of file diff --git a/current/songbird/constants/constant.UDP_KEEPALIVE_GAP.html b/current/songbird/constants/constant.UDP_KEEPALIVE_GAP.html index fcb472260..dfba3d80e 100644 --- a/current/songbird/constants/constant.UDP_KEEPALIVE_GAP.html +++ b/current/songbird/constants/constant.UDP_KEEPALIVE_GAP.html @@ -1,4 +1,4 @@ -UDP_KEEPALIVE_GAP in songbird::constants - Rust
songbird::constants

Constant UDP_KEEPALIVE_GAP

Source
pub const UDP_KEEPALIVE_GAP: Duration;
Expand description

Type-converted delay between sends of UDP keepalive frames.

+UDP_KEEPALIVE_GAP in songbird::constants - Rust
songbird::constants

Constant UDP_KEEPALIVE_GAP

Source
pub const UDP_KEEPALIVE_GAP: Duration;
Expand description

Type-converted delay between sends of UDP keepalive frames.

Passive monitoring of Discord itself shows that these fire every 5 seconds irrespective of outgoing UDP traffic.

\ No newline at end of file diff --git a/current/songbird/constants/constant.UDP_KEEPALIVE_GAP_MS.html b/current/songbird/constants/constant.UDP_KEEPALIVE_GAP_MS.html index 2e821c7ba..9de992402 100644 --- a/current/songbird/constants/constant.UDP_KEEPALIVE_GAP_MS.html +++ b/current/songbird/constants/constant.UDP_KEEPALIVE_GAP_MS.html @@ -1,4 +1,4 @@ -UDP_KEEPALIVE_GAP_MS in songbird::constants - Rust
songbird::constants

Constant UDP_KEEPALIVE_GAP_MS

Source
pub const UDP_KEEPALIVE_GAP_MS: u64 = 5_000;
Expand description

Delay between sends of UDP keepalive frames.

+UDP_KEEPALIVE_GAP_MS in songbird::constants - Rust
songbird::constants

Constant UDP_KEEPALIVE_GAP_MS

Source
pub const UDP_KEEPALIVE_GAP_MS: u64 = 5_000;
Expand description

Delay between sends of UDP keepalive frames.

Passive monitoring of Discord itself shows that these fire every 5 seconds irrespective of outgoing UDP traffic.

\ No newline at end of file diff --git a/current/songbird/constants/constant.VOICE_GATEWAY_VERSION.html b/current/songbird/constants/constant.VOICE_GATEWAY_VERSION.html index 0143354e9..9923b4346 100644 --- a/current/songbird/constants/constant.VOICE_GATEWAY_VERSION.html +++ b/current/songbird/constants/constant.VOICE_GATEWAY_VERSION.html @@ -1,2 +1,2 @@ -VOICE_GATEWAY_VERSION in songbird::constants - Rust
songbird::constants

Constant VOICE_GATEWAY_VERSION

Source
pub const VOICE_GATEWAY_VERSION: u8 = crate::model::constants::GATEWAY_VERSION; // 4u8
Expand description

The voice gateway version used by the library.

+VOICE_GATEWAY_VERSION in songbird::constants - Rust
songbird::constants

Constant VOICE_GATEWAY_VERSION

Source
pub const VOICE_GATEWAY_VERSION: u8 = crate::model::constants::GATEWAY_VERSION; // 4u8
Expand description

The voice gateway version used by the library.

\ No newline at end of file diff --git a/current/songbird/constants/constant.VOICE_PACKET_MAX.html b/current/songbird/constants/constant.VOICE_PACKET_MAX.html index 0b95d7cf1..e266cb056 100644 --- a/current/songbird/constants/constant.VOICE_PACKET_MAX.html +++ b/current/songbird/constants/constant.VOICE_PACKET_MAX.html @@ -1,3 +1,3 @@ -VOICE_PACKET_MAX in songbird::constants - Rust
songbird::constants

Constant VOICE_PACKET_MAX

Source
pub const VOICE_PACKET_MAX: usize = 1460;
Expand description

Maximum packet size for a voice packet.

+VOICE_PACKET_MAX in songbird::constants - Rust
songbird::constants

Constant VOICE_PACKET_MAX

Source
pub const VOICE_PACKET_MAX: usize = 1460;
Expand description

Maximum packet size for a voice packet.

Set a safe amount below the Ethernet MTU to avoid fragmentation/rejection.

\ No newline at end of file diff --git a/current/songbird/constants/index.html b/current/songbird/constants/index.html index 58124f140..d98de35f2 100644 --- a/current/songbird/constants/index.html +++ b/current/songbird/constants/index.html @@ -1,2 +1,2 @@ -songbird::constants - Rust
songbird

Module constants

Source
Expand description

Constants affecting driver function and API handling.

+songbird::constants - Rust
songbird

Module constants

Source
Expand description

Constants affecting driver function and API handling.

Constants§

\ No newline at end of file diff --git a/current/songbird/driver/enum.Bitrate.html b/current/songbird/driver/enum.Bitrate.html index 99428370e..fba585ded 100644 --- a/current/songbird/driver/enum.Bitrate.html +++ b/current/songbird/driver/enum.Bitrate.html @@ -1,4 +1,4 @@ -Bitrate in songbird::driver - Rust
songbird::driver

Enum Bitrate

pub enum Bitrate {
+Bitrate in songbird::driver - Rust
songbird::driver

Enum Bitrate

pub enum Bitrate {
     BitsPerSecond(i32),
     Max,
     Auto,
diff --git a/current/songbird/driver/enum.Channels.html b/current/songbird/driver/enum.Channels.html
index e4fbd8e32..6f04e5593 100644
--- a/current/songbird/driver/enum.Channels.html
+++ b/current/songbird/driver/enum.Channels.html
@@ -1,4 +1,4 @@
-Channels in songbird::driver - Rust
songbird::driver

Enum Channels

Source
#[non_exhaustive]
pub enum Channels { +Channels in songbird::driver - Rust
songbird::driver

Enum Channels

Source
#[non_exhaustive]
pub enum Channels { Mono, Stereo, }
Expand description

The channel layout of output audio when using DecodeMode::Decode.

diff --git a/current/songbird/driver/enum.CryptoMode.html b/current/songbird/driver/enum.CryptoMode.html index 7682d56d8..468b66c91 100644 --- a/current/songbird/driver/enum.CryptoMode.html +++ b/current/songbird/driver/enum.CryptoMode.html @@ -1,4 +1,4 @@ -CryptoMode in songbird::driver - Rust
songbird::driver

Enum CryptoMode

Source
#[non_exhaustive]
pub enum CryptoMode { +CryptoMode in songbird::driver - Rust
songbird::driver

Enum CryptoMode

Source
#[non_exhaustive]
pub enum CryptoMode { Aes256Gcm, XChaCha20Poly1305, Normal, diff --git a/current/songbird/driver/enum.DecodeMode.html b/current/songbird/driver/enum.DecodeMode.html index 1dfe30b08..716e820a5 100644 --- a/current/songbird/driver/enum.DecodeMode.html +++ b/current/songbird/driver/enum.DecodeMode.html @@ -1,4 +1,4 @@ -DecodeMode in songbird::driver - Rust
songbird::driver

Enum DecodeMode

Source
#[non_exhaustive]
pub enum DecodeMode { +DecodeMode in songbird::driver - Rust
songbird::driver

Enum DecodeMode

Source
#[non_exhaustive]
pub enum DecodeMode { Pass, Decrypt, Decode, diff --git a/current/songbird/driver/enum.MixMode.html b/current/songbird/driver/enum.MixMode.html index 977d3814f..0ce26fc06 100644 --- a/current/songbird/driver/enum.MixMode.html +++ b/current/songbird/driver/enum.MixMode.html @@ -1,4 +1,4 @@ -MixMode in songbird::driver - Rust
songbird::driver

Enum MixMode

Source
pub enum MixMode {
+MixMode in songbird::driver - Rust
songbird::driver

Enum MixMode

Source
pub enum MixMode {
     Mono,
     Stereo,
 }
Expand description

Mixing behaviour for sent audio sources processed within the driver.

diff --git a/current/songbird/driver/enum.SampleRate.html b/current/songbird/driver/enum.SampleRate.html index 55bcdc026..cf71c8dbb 100644 --- a/current/songbird/driver/enum.SampleRate.html +++ b/current/songbird/driver/enum.SampleRate.html @@ -1,4 +1,4 @@ -SampleRate in songbird::driver - Rust
songbird::driver

Enum SampleRate

Source
#[non_exhaustive]
pub enum SampleRate { +SampleRate in songbird::driver - Rust
songbird::driver

Enum SampleRate

Source
#[non_exhaustive]
pub enum SampleRate { Hz8000, Hz12000, Hz16000, diff --git a/current/songbird/driver/enum.SchedulerError.html b/current/songbird/driver/enum.SchedulerError.html index 433c4d244..1ac1d4183 100644 --- a/current/songbird/driver/enum.SchedulerError.html +++ b/current/songbird/driver/enum.SchedulerError.html @@ -1,4 +1,4 @@ -SchedulerError in songbird::driver - Rust
songbird::driver

Enum SchedulerError

Source
#[non_exhaustive]
pub enum SchedulerError { +SchedulerError in songbird::driver - Rust
songbird::driver

Enum SchedulerError

Source
#[non_exhaustive]
pub enum SchedulerError { Disconnected, }
Expand description

Errors encountered when communicating with the internals of a Scheduler.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Disconnected

The scheduler exited or crashed while awating the request.

diff --git a/current/songbird/driver/enum.SchedulerMode.html b/current/songbird/driver/enum.SchedulerMode.html index 8026a39bc..7a629ac2c 100644 --- a/current/songbird/driver/enum.SchedulerMode.html +++ b/current/songbird/driver/enum.SchedulerMode.html @@ -1,4 +1,4 @@ -SchedulerMode in songbird::driver - Rust
songbird::driver

Enum SchedulerMode

Source
#[non_exhaustive]
pub enum SchedulerMode { +SchedulerMode in songbird::driver - Rust
songbird::driver

Enum SchedulerMode

Source
#[non_exhaustive]
pub enum SchedulerMode { MaxPerThread(NonZeroUsize), }
Expand description

Strategies for mapping live mixer tasks to individual threads.

Defaults to MaxPerThread(16).

diff --git a/current/songbird/driver/index.html b/current/songbird/driver/index.html index 915f2330e..f9d025006 100644 --- a/current/songbird/driver/index.html +++ b/current/songbird/driver/index.html @@ -1,4 +1,4 @@ -songbird::driver - Rust
songbird

Module driver

Source
Expand description

Runner for a voice connection.

+songbird::driver - Rust
songbird

Module driver

Source
Expand description

Runner for a voice connection.

Songbird’s driver is a mixed-sync system, using: