Struct wasapi::AudioCaptureClient [−][src]
pub struct AudioCaptureClient { /* fields omitted */ }
Expand description
Struct wrapping an IAudioCaptureClient.
Implementations
impl AudioCaptureClient
[src]
impl AudioCaptureClient
[src]pub fn get_next_nbr_frames(&self) -> Result<Option<u32>, Box<dyn Error>>
[src]
pub fn get_next_nbr_frames(&self) -> Result<Option<u32>, Box<dyn Error>>
[src]Get number of frames in next packet when in shared mode.
In exclusive mode it returns None, instead use get_bufferframecount()
on the AudioClient.
pub fn read_from_device(
&self,
bytes_per_frame: usize,
data: &mut [u8]
) -> Result<u32, Box<dyn Error>>
[src]
pub fn read_from_device(
&self,
bytes_per_frame: usize,
data: &mut [u8]
) -> Result<u32, Box<dyn Error>>
[src]Read raw bytes from a device into a slice, returns the number of frames read. The slice must be large enough to hold all data. If it is longer that needed, the unused elements will not be modified.