Struct wasapi::AudioRenderClient
source · pub struct AudioRenderClient { /* private fields */ }
Expand description
Struct wrapping an IAudioRenderClient.
Implementations§
source§impl AudioRenderClient
impl AudioRenderClient
sourcepub fn write_to_device(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &[u8],
buffer_flags: Option<BufferFlags>
) -> Result<(), Box<dyn Error>>
pub fn write_to_device( &self, nbr_frames: usize, byte_per_frame: usize, data: &[u8], buffer_flags: Option<BufferFlags> ) -> Result<(), Box<dyn Error>>
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.
The buffer_flags argument can be used to mark a buffer as silent.
sourcepub fn write_to_device_from_deque(
&self,
nbr_frames: usize,
byte_per_frame: usize,
data: &mut VecDeque<u8>,
buffer_flags: Option<BufferFlags>
) -> Result<(), Box<dyn Error>>
pub fn write_to_device_from_deque( &self, nbr_frames: usize, byte_per_frame: usize, data: &mut VecDeque<u8>, buffer_flags: Option<BufferFlags> ) -> Result<(), Box<dyn Error>>
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.
The buffer_flags argument can be used to mark a buffer as silent.
Auto Trait Implementations§
impl RefUnwindSafe for AudioRenderClient
impl !Send for AudioRenderClient
impl !Sync for AudioRenderClient
impl Unpin for AudioRenderClient
impl UnwindSafe for AudioRenderClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more