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,
data: &[u8],
buffer_flags: Option<BufferFlags>,
) -> Result<(), WasapiError>
pub fn write_to_device( &self, nbr_frames: usize, data: &[u8], buffer_flags: Option<BufferFlags>, ) -> Result<(), WasapiError>
Write raw bytes data to a device from a slice. The number of frames to write should first be checked with the AudioClient::get_available_space_in_frames() method. The buffer_flags argument can be used to mark a buffer as silent.
Sourcepub fn write_to_device_from_deque(
&self,
nbr_frames: usize,
data: &mut VecDeque<u8>,
buffer_flags: Option<BufferFlags>,
) -> Result<(), WasapiError>
pub fn write_to_device_from_deque( &self, nbr_frames: usize, data: &mut VecDeque<u8>, buffer_flags: Option<BufferFlags>, ) -> Result<(), WasapiError>
Write raw bytes data to a device from a deque. The number of frames to write should first be checked with the AudioClient::get_available_space_in_frames() method. The buffer_flags argument can be used to mark a buffer as silent.
Auto Trait Implementations§
impl !Send for AudioRenderClient
impl !Sync for AudioRenderClient
impl Freeze for AudioRenderClient
impl RefUnwindSafe for AudioRenderClient
impl Unpin for AudioRenderClient
impl UnsafeUnpin 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