Struct audiostream::DynBuffer [] [src]

pub struct DynBuffer<'z> {
    pub bytes: &'z mut [&'z mut [u8]],
    pub sample_size: u8,
    pub sample_rate: u32,
}

The result of pulling from a DynamicSource.

You probably shouldn't use this because it's experimental.

Fields

bytes

Raw bytes of sample data. TODO Any might be more appropriate, particularly for externally-defined sample formats. It's very easy for us to get confused by one of those.

sample_size

Size of individual samples, in bits.

Note that it's impossible to tell what actual format

sample_rate

Sample rate in Hz