Struct wasapi::AudioRenderClient [−][src]
pub struct AudioRenderClient { /* fields omitted */ }
Expand description
Struct wrapping an IAudioRenderClient.
Implementations
impl AudioRenderClient
[src]
impl AudioRenderClient
[src]pub fn write_to_device(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &[u8]
) -> Result<(), Box<dyn Error>>
[src]
pub fn write_to_device(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &[u8]
) -> Result<(), Box<dyn Error>>
[src]Write raw bytes data to a device from a slice.
The number of frames to write should first be checked with the
get_available_space_in_frames()
method on the AudioClient
.
pub fn write_to_device_from_deque(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &mut VecDeque<u8>
) -> Result<(), Box<dyn Error>>
[src]
pub fn write_to_device_from_deque(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &mut VecDeque<u8>
) -> Result<(), Box<dyn Error>>
[src]Write raw bytes data to a device from a deque.
The number of frames to write should first be checked with the
get_available_space_in_frames()
method on the AudioClient
.