pub struct StreamConfig {
pub platform: StreamingPlatform,
pub buffer_size: usize,
pub sample_rate: u32,
pub channels: u32,
pub quality: StreamQuality,
pub enable_monitoring: bool,
pub enable_adaptation: bool,
pub voice_activity_detection: bool,
pub automatic_gain_control: bool,
pub noise_suppression: bool,
pub platform_optimizations: HashMap<String, f32>,
}Expand description
Stream-specific audio configuration
Fields§
§platform: StreamingPlatformTarget streaming platform
buffer_size: usizeAudio buffer size for processing
sample_rate: u32Sample rate
channels: u32Number of audio channels
quality: StreamQualityStream quality level
enable_monitoring: boolEnable real-time monitoring
enable_adaptation: boolEnable bandwidth adaptation
voice_activity_detection: boolEnable voice activity detection
automatic_gain_control: boolEnable automatic gain control
noise_suppression: boolEnable noise suppression for streaming
platform_optimizations: HashMap<String, f32>Stream-specific optimizations
Implementations§
Source§impl StreamConfig
impl StreamConfig
Sourcepub fn twitch_optimized() -> Self
pub fn twitch_optimized() -> Self
Create Twitch-optimized configuration
Sourcepub fn youtube_optimized() -> Self
pub fn youtube_optimized() -> Self
Create YouTube Live-optimized configuration
Sourcepub fn discord_optimized() -> Self
pub fn discord_optimized() -> Self
Create Discord-optimized configuration
Sourcepub fn obs_optimized() -> Self
pub fn obs_optimized() -> Self
Create OBS Studio-optimized configuration
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamConfig
impl Debug for StreamConfig
Source§impl<'de> Deserialize<'de> for StreamConfig
impl<'de> Deserialize<'de> for StreamConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
impl UnwindSafe for StreamConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more