Trait oddio::Frame[][src]

pub trait Frame {
    const ZERO: Self;

    fn channels(&self) -> &[Sample]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
fn channels_mut(&mut self) -> &mut [Sample]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
; }

A single frame of audio data, encoding one sample for each channel

Associated Constants

const ZERO: Self[src]

A frame with zeroes in every channel

Loading content...

Required methods

fn channels(&self) -> &[Sample]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

Access the frame's channels

fn channels_mut(&mut self) -> &mut [Sample]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

Mutably access the frame's channels

Loading content...

Implementations on Foreign Types

impl Frame for [Sample; 2][src]

Loading content...

Implementors

impl Frame for Sample[src]

Loading content...