pub struct AudioCodecParametersBuilder { /* private fields */ }
Expand description
Builder for audio codec parameters.
Implementations§
Source§impl AudioCodecParametersBuilder
impl AudioCodecParametersBuilder
Sourcepub fn sample_format(self, format: SampleFormat) -> Self
pub fn sample_format(self, format: SampleFormat) -> Self
Set frame sample format.
Sourcepub fn sample_rate(self, rate: u32) -> Self
pub fn sample_rate(self, rate: u32) -> Self
Set sampling rate.
Sourcepub fn channel_layout(self, layout: &ChannelLayoutRef) -> Self
pub fn channel_layout(self, layout: &ChannelLayoutRef) -> Self
Set channel layout.
Sourcepub fn build(self) -> AudioCodecParameters
pub fn build(self) -> AudioCodecParameters
Build the codec parameters.
Trait Implementations§
Source§impl From<AudioCodecParameters> for AudioCodecParametersBuilder
impl From<AudioCodecParameters> for AudioCodecParametersBuilder
Source§fn from(params: AudioCodecParameters) -> Self
fn from(params: AudioCodecParameters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AudioCodecParametersBuilder
impl RefUnwindSafe for AudioCodecParametersBuilder
impl Send for AudioCodecParametersBuilder
impl Sync for AudioCodecParametersBuilder
impl Unpin for AudioCodecParametersBuilder
impl UnwindSafe for AudioCodecParametersBuilder
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