Struct wasapi::AudioClient[][src]

pub struct AudioClient { /* fields omitted */ }
Expand description

Struct wrapping an IAudioClient.

Implementations

Get MixFormat of the device. This is the format the device uses in shared mode and should always be accepted.

Check if a format is supported. If it’s directly supported, this returns Ok(None). If not, but a similar format is, then the supported format is returned as Ok(Some(WaveFormat)).

Get default and minimum periods in 100-nanosecond units

Initialize an IAudioClient for the given direction, sharemode and format. Setting convert to true enables automatic samplerate and format conversion, meaning that almost any format will be accepted.

Create and return an event handle for an IAudioClient

Get buffer size in frames

Get current padding in frames. This represents the number of frames currently in the buffer, for both capture and render devices.

Get buffer size minus padding in frames. Use this to find out how much free space is available in the buffer.

Start the stream on an IAudioClient

Stop the stream on an IAudioClient

Reset the stream on an IAudioClient

Get a rendering (playback) client

Get a capture client

Get the AudioSessionControl

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.