[−][src]Struct gstreamer_audio::audio_buffer::AudioBuffer
Implementations
impl<T> AudioBuffer<T>
[src]
pub fn info(&self) -> &AudioInfo
[src]
pub fn into_buffer(self) -> Buffer
[src]
pub fn format(&self) -> AudioFormat
[src]
pub fn format_info(&self) -> AudioFormatInfo
[src]
pub fn channels(&self) -> u32
[src]
pub fn rate(&self) -> u32
[src]
pub fn layout(&self) -> AudioLayout
[src]
pub fn width(&self) -> u32
[src]
pub fn depth(&self) -> u32
[src]
pub fn sample_stride(&self) -> u32
[src]
pub fn bps(&self) -> u32
[src]
pub fn bpf(&self) -> u32
[src]
pub fn n_samples(&self) -> usize
[src]
pub fn n_planes(&self) -> u32
[src]
pub fn plane_size(&self) -> usize
[src]
pub fn buffer(&self) -> &BufferRef
[src]
pub fn plane_data(&self, plane: u32) -> Result<&[u8], BoolError>
[src]
pub fn as_audio_buffer_ref(&self) -> AudioBufferRef<&BufferRef>
[src]
pub fn as_ptr(&self) -> *const GstAudioBuffer
[src]
impl AudioBuffer<Readable>
[src]
pub fn from_buffer_readable(
buffer: Buffer,
info: &AudioInfo
) -> Result<AudioBuffer<Readable>, Buffer>
[src]
buffer: Buffer,
info: &AudioInfo
) -> Result<AudioBuffer<Readable>, Buffer>
impl AudioBuffer<Writable>
[src]
pub fn from_buffer_writable(
buffer: Buffer,
info: &AudioInfo
) -> Result<AudioBuffer<Writable>, Buffer>
[src]
buffer: Buffer,
info: &AudioInfo
) -> Result<AudioBuffer<Writable>, Buffer>
pub fn buffer_mut(&mut self) -> &mut BufferRef
[src]
pub fn plane_data_mut(&mut self, plane: u32) -> Result<&mut [u8], BoolError>
[src]
pub fn as_mut_audio_buffer_ref(&mut self) -> AudioBufferRef<&mut BufferRef>
[src]
pub fn as_mut_ptr(&mut self) -> *mut GstAudioBuffer
[src]
Trait Implementations
impl<T> Debug for AudioBuffer<T>
[src]
impl<T> Drop for AudioBuffer<T>
[src]
impl<T> Send for AudioBuffer<T>
[src]
impl<T> Sync for AudioBuffer<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for AudioBuffer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Unpin for AudioBuffer<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for AudioBuffer<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,