Trait AudioDeviceDriver

Source
pub trait AudioDeviceDriver {
    // Required methods
    fn status(&self) -> AudioStatus;
    fn driver(&self) -> &'static str;
    fn spec(&self) -> AudioSpec;
    fn resume(&self);
    fn pause(&self);
}
Expand description

Provides access to audio device driver properties and controlling playback.

Required Methods§

Source

fn status(&self) -> AudioStatus

Return the status of this audio callback device.

Source

fn driver(&self) -> &'static str

Return the current driver of this audio callback device.

Source

fn spec(&self) -> AudioSpec

Returns the AudioSpec for this audio callback device.

Source

fn resume(&self)

Resumes playback of this audio callback device.

Source

fn pause(&self)

Pause playback of this audio callback device.

Implementors§