Struct gstreamer_audio::AudioRingBufferSpec
source · pub struct AudioRingBufferSpec(/* private fields */);
Expand description
The structure containing the format specification of the ringbuffer.
When type
is GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DSD, the dsd_format
is valid (otherwise it is unused). Also, when DSD is the sample type,
only the rate, channels, position, and bpf fields in info
are populated.
Implementations§
source§impl AudioRingBufferSpec
impl AudioRingBufferSpec
pub fn type_(&self) -> AudioRingBufferFormatType
pub fn set_type(&mut self, value: AudioRingBufferFormatType)
pub fn caps(&self) -> Caps
pub fn audio_info(&self) -> AudioInfo
pub fn latency_time(&self) -> u64
pub fn set_latency_time(&mut self, value: u64)
pub fn buffer_time(&self) -> u64
pub fn set_buffer_time(&mut self, value: u64)
pub fn segsize(&self) -> i32
pub fn set_segsize(&mut self, value: i32)
pub fn segtotal(&self) -> i32
pub fn set_segtotal(&mut self, value: i32)
pub fn seglatency(&self) -> i32
pub fn set_seglatency(&mut self, value: i32)
Trait Implementations§
source§impl Clone for AudioRingBufferSpec
impl Clone for AudioRingBufferSpec
source§impl Debug for AudioRingBufferSpec
impl Debug for AudioRingBufferSpec
source§impl Drop for AudioRingBufferSpec
impl Drop for AudioRingBufferSpec
impl Send for AudioRingBufferSpec
impl Sync for AudioRingBufferSpec
Auto Trait Implementations§
impl Freeze for AudioRingBufferSpec
impl RefUnwindSafe for AudioRingBufferSpec
impl Unpin for AudioRingBufferSpec
impl UnwindSafe for AudioRingBufferSpec
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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