Struct aws_sdk_mediaconvert::types::OpusSettings
source · #[non_exhaustive]pub struct OpusSettings {
pub bitrate: Option<i32>,
pub channels: Option<i32>,
pub sample_rate: Option<i32>,
}
Expand description
Required when you set Codec, under AudioDescriptions>CodecSettings, to the value OPUS.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.bitrate: Option<i32>
Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
channels: Option<i32>
Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
sample_rate: Option<i32>
Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
Implementations§
source§impl OpusSettings
impl OpusSettings
sourcepub fn bitrate(&self) -> Option<i32>
pub fn bitrate(&self) -> Option<i32>
Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
sourcepub fn channels(&self) -> Option<i32>
pub fn channels(&self) -> Option<i32>
Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
sourcepub fn sample_rate(&self) -> Option<i32>
pub fn sample_rate(&self) -> Option<i32>
Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
source§impl OpusSettings
impl OpusSettings
sourcepub fn builder() -> OpusSettingsBuilder
pub fn builder() -> OpusSettingsBuilder
Creates a new builder-style object to manufacture OpusSettings
.
Trait Implementations§
source§impl Clone for OpusSettings
impl Clone for OpusSettings
source§fn clone(&self) -> OpusSettings
fn clone(&self) -> OpusSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpusSettings
impl Debug for OpusSettings
source§impl PartialEq for OpusSettings
impl PartialEq for OpusSettings
source§fn eq(&self, other: &OpusSettings) -> bool
fn eq(&self, other: &OpusSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OpusSettings
Auto Trait Implementations§
impl Freeze for OpusSettings
impl RefUnwindSafe for OpusSettings
impl Send for OpusSettings
impl Sync for OpusSettings
impl Unpin for OpusSettings
impl UnwindSafe for OpusSettings
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
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>
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>
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