Struct gstreamer_audio::audio_buffer::AudioBuffer
source · pub struct AudioBuffer<T> { /* private fields */ }Available on crate feature
v1_16 only.Implementations
sourceimpl<T> AudioBuffer<T>
impl<T> AudioBuffer<T>
pub fn info(&self) -> &AudioInfo
pub fn into_buffer(self) -> Buffer
pub fn format(&self) -> AudioFormat
pub fn format_info(&self) -> AudioFormatInfo
pub fn channels(&self) -> u32
pub fn rate(&self) -> u32
pub fn layout(&self) -> AudioLayout
pub fn width(&self) -> u32
pub fn depth(&self) -> u32
pub fn sample_stride(&self) -> u32
pub fn bps(&self) -> u32
pub fn bpf(&self) -> u32
pub fn n_samples(&self) -> usize
pub fn n_planes(&self) -> u32
pub fn plane_size(&self) -> usize
pub fn buffer(&self) -> &BufferRef
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
pub fn as_audio_buffer_ref(&self) -> AudioBufferRef<&BufferRef>
pub fn as_ptr(&self) -> *const GstAudioBuffer
sourceimpl AudioBuffer<Readable>
impl AudioBuffer<Readable>
sourceimpl AudioBuffer<Writable>
impl AudioBuffer<Writable>
pub fn from_buffer_writable(
buffer: Buffer,
info: &AudioInfo
) -> Result<Self, Buffer>
pub fn buffer_mut(&mut self) -> &mut BufferRef
pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>
pub fn as_mut_audio_buffer_ref(&mut self) -> AudioBufferRef<&mut BufferRef>
pub fn as_mut_ptr(&mut self) -> *mut GstAudioBuffer
Trait Implementations
sourceimpl<T> Debug for AudioBuffer<T>
impl<T> Debug for AudioBuffer<T>
sourceimpl<T> Drop for AudioBuffer<T>
impl<T> Drop for AudioBuffer<T>
impl<T> Send for AudioBuffer<T>
impl<T> Sync for AudioBuffer<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for AudioBuffer<T>where
T: RefUnwindSafe,
impl<T> Unpin for AudioBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for AudioBuffer<T>where
T: UnwindSafe,
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