Type Alias AudioFormat

Source
pub type AudioFormat = VSAudioFormat;

Aliased Type§

struct AudioFormat {
    pub sample_type: VSSampleType,
    pub bits_per_sample: i32,
    pub bytes_per_sample: i32,
    pub num_channels: i32,
    pub channel_layout: u64,
}

Fields§

§sample_type: VSSampleType

See [VSSampleType].

§bits_per_sample: i32

Number of significant bits.

§bytes_per_sample: i32

Number of bytes needed for a sample. This is always a power of 2 and the smallest possible that can fit the number of bits used per sample, implicit from [VSAudioFormat::channel_layout].

§num_channels: i32

Number of audio channels, implicit from [VSAudioFormat::bits_per_sample]

§channel_layout: u64

A bitmask representing the channels present using the constants in 1 left shifted by the constants in [VSAudioChannels].