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§