pub struct AcousticEchoCancellationControl { /* private fields */ }Expand description
Struct wrapping an AcousticEchoCancellationControl.
Implementations§
Source§impl AcousticEchoCancellationControl
impl AcousticEchoCancellationControl
Sourcepub fn set_echo_cancellation_render_endpoint(
&self,
endpoint_id: Option<String>,
) -> Result<(), WasapiError>
pub fn set_echo_cancellation_render_endpoint( &self, endpoint_id: Option<String>, ) -> Result<(), WasapiError>
Sets the audio render endpoint to be used as the reference stream for acoustic echo cancellation (AEC).
§Parameters
endpoint_id: An optional string containing the device ID of the audio render endpoint to use as the loopback reference. If set toNone, Windows will automatically select the reference device. You can obtain the device ID by calling Device::get_id().
§Errors
Returns an error if setting the echo cancellation render endpoint fails.
Auto Trait Implementations§
impl Freeze for AcousticEchoCancellationControl
impl RefUnwindSafe for AcousticEchoCancellationControl
impl !Send for AcousticEchoCancellationControl
impl !Sync for AcousticEchoCancellationControl
impl Unpin for AcousticEchoCancellationControl
impl UnwindSafe for AcousticEchoCancellationControl
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