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.
pub fn is_supported(
&self,
wave_fmt: &WaveFormat,
sharemode: &ShareMode
) -> Result<Option<WaveFormat>, Box<dyn Error>>
pub fn is_supported(
&self,
wave_fmt: &WaveFormat,
sharemode: &ShareMode
) -> Result<Option<WaveFormat>, Box<dyn Error>>
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 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.
Get a rendering (playback) client
Get a capture client
Get the AudioSessionControl