Struct webrtc_media::track::constraint::audio::Audio
source · [−]pub struct Audio {
pub sample_rate: Option<SampleRate>,
pub sample_size: Option<SampleSize>,
pub echo_cancellation: Option<EchoCancellation>,
pub auto_gain_control: Option<AutoGainControl>,
pub noise_suppression: Option<NoiseSuppression>,
pub latency: Option<Latency>,
pub channel_count: Option<ChannelCount>,
}
Expand description
An audio’s constraints
Fields
sample_rate: Option<SampleRate>
sample_size: Option<SampleSize>
echo_cancellation: Option<EchoCancellation>
auto_gain_control: Option<AutoGainControl>
noise_suppression: Option<NoiseSuppression>
latency: Option<Latency>
channel_count: Option<ChannelCount>
Implementations
sourceimpl Audio
impl Audio
pub fn builder() -> AudioBuilder
pub fn new(
sample_rate: Option<SampleRate>,
sample_size: Option<SampleSize>,
echo_cancellation: Option<EchoCancellation>,
auto_gain_control: Option<AutoGainControl>,
noise_suppression: Option<NoiseSuppression>,
latency: Option<Latency>,
channel_count: Option<ChannelCount>
) -> Self
Trait Implementations
sourceimpl PartialEq<Audio> for Audio
impl PartialEq<Audio> for Audio
impl StructuralPartialEq for Audio
Auto Trait Implementations
impl RefUnwindSafe for Audio
impl Send for Audio
impl Sync for Audio
impl Unpin for Audio
impl UnwindSafe for Audio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more