Struct ao_rs::Format
[−]
[src]
pub struct Format { pub bits: u32, pub rate: u32, pub channels: u32, pub byte_format: ByteFormat, pub channel_format: Option<String>, }
Ao sample format.
Fields
bits: u32
rate: u32
channels: u32
byte_format: ByteFormat
channel_format: Option<String>
Methods
impl Format
[src]
pub fn new() -> Self
[src]
Creates a new default format.
pub fn to_ao_format(&self) -> AoFormat
[src]
Returns a new AoFormat without consuming self.