Enum sample::Format [] [src]

pub enum Format {
    F32,
    I32,
    I16,
    I8,
    U32,
    U16,
    U8,
}

A dynamic representation of common Sample Formats.

Variants

F32

32-bit floating point.

I32

32-bit integer.

I16

16-bit integer.

I8

8-bit integer.

U32

32-bit unsigned integer.

U16

16-bit unsigned integer. 0 corresponds to half of ::std::u16::MAX.

U8

8-bit unsigned integer.

Methods

impl Format
[src]

fn size_in_bytes(&self) -> usize

Return the size in bytes for the Format.