[][src]Trait audir::Device

pub trait Device {
    unsafe fn start(&self);
unsafe fn stop(&self);
unsafe fn stream_properties(&self) -> StreamProperties; unsafe fn submit_buffers(&mut self, _timeout_ms: u32) -> Result<()> { ... } }

Required methods

unsafe fn start(&self)

unsafe fn stop(&self)

unsafe fn stream_properties(&self) -> StreamProperties

Loading content...

Provided methods

unsafe fn submit_buffers(&mut self, _timeout_ms: u32) -> Result<()>

Submit stream buffers.

This function must be called only for devices of a polling instance. It will internally wait for acquiring the streaming buffers, call the stream callback for reading/writing the buffers and submit these to the audio engine.

Validation

  • Must only be called for devices, which corresponding instance streaming properties are Polling.
Loading content...

Implementors

impl Device for Device[src]

Loading content...