pub struct AudioBufferRef<T> { /* private fields */ }

Implementations§

source§

impl<T> AudioBufferRef<T>

source

pub fn info(&self) -> &AudioInfo

source

pub fn format(&self) -> AudioFormat

source

pub fn format_info(&self) -> AudioFormatInfo

source

pub fn channels(&self) -> u32

source

pub fn rate(&self) -> u32

source

pub fn layout(&self) -> AudioLayout

source

pub fn width(&self) -> u32

source

pub fn depth(&self) -> u32

source

pub fn sample_stride(&self) -> u32

source

pub fn bps(&self) -> u32

source

pub fn bpf(&self) -> u32

source

pub fn n_samples(&self) -> usize

source

pub fn n_planes(&self) -> u32

source

pub fn plane_size(&self) -> usize

source

pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>

source

pub fn planes_data(&self) -> SmallVec<[&[u8]; 8]>

source

pub fn as_ptr(&self) -> *const GstAudioBuffer

source§

impl<'a> AudioBufferRef<&'a BufferRef>

source

pub unsafe fn from_glib_borrow( audio_buffer: *const GstAudioBuffer ) -> Borrowed<Self>

source

pub fn from_buffer_ref_readable<'b>( buffer: &'a BufferRef, info: &'b AudioInfo ) -> Result<Self, BoolError>

source

pub fn buffer(&self) -> &BufferRef

source§

impl<'a> AudioBufferRef<&'a mut BufferRef>

source

pub unsafe fn from_glib_borrow_mut( audio_buffer: *mut GstAudioBuffer ) -> Borrowed<Self>

source

pub fn from_buffer_ref_writable<'b>( buffer: &'a mut BufferRef, info: &'b AudioInfo ) -> Result<Self, BoolError>

source

pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>

source

pub fn planes_data_mut(&mut self) -> SmallVec<[&mut [u8]; 8]>

source

pub fn as_mut_ptr(&mut self) -> *mut GstAudioBuffer

Trait Implementations§

source§

impl<T> Debug for AudioBufferRef<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Deref for AudioBufferRef<&'a mut BufferRef>

§

type Target = AudioBufferRef<&'a BufferRef>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<T> Drop for AudioBufferRef<T>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<T> Send for AudioBufferRef<T>

source§

impl<T> Sync for AudioBufferRef<T>

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AudioBufferRef<T>
where T: RefUnwindSafe,

§

impl<T> Unpin for AudioBufferRef<T>
where T: Unpin,

§

impl<T> UnwindSafe for AudioBufferRef<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.