Struct ao_rs::Device
[−]
[src]
pub struct Device { /* fields omitted */ }
Ao device.
Methods
impl Device
[src]
fn new(
driver: &Driver,
format: &Format,
settings: Option<&Settings>
) -> Result<Self, Error>
driver: &Driver,
format: &Format,
settings: Option<&Settings>
) -> Result<Self, Error>
Creates a new device using the given driver, format, and settings.
fn play(&self, buffer: &[i8])
Plays the given PCM data using the specified format.