@@ -1159,6 +1159,7 @@ impl AudioClient {
1159
1159
}
1160
1160
}
1161
1161
1162
+ /// Check if the Acoustic Echo Cancellation (AEC) effect is currently present.
1162
1163
fn is_aec_effect_present ( & self ) -> WasapiRes < bool > {
1163
1164
// IAudioEffectsManager requires Windows 11 (build 22000 or higher).
1164
1165
let audio_effects_manager = match self . get_audio_effects_manager ( ) {
@@ -1188,7 +1189,7 @@ pub struct AudioSessionControl {
1188
1189
}
1189
1190
1190
1191
impl AudioSessionControl {
1191
- /// Get the current state
1192
+ /// Get the current session state
1192
1193
pub fn get_state ( & self ) -> WasapiRes < SessionState > {
1193
1194
let state = unsafe { self . control . GetState ( ) ? } ;
1194
1195
#[ allow( non_upper_case_globals) ]
@@ -1273,7 +1274,7 @@ pub struct AudioRenderClient {
1273
1274
impl AudioRenderClient {
1274
1275
/// Write raw bytes data to a device from a slice.
1275
1276
/// The number of frames to write should first be checked with the
1276
- /// ` get_available_space_in_frames()` method on the [AudioClient] .
1277
+ /// [AudioClient:: get_available_space_in_frames()] method.
1277
1278
/// The buffer_flags argument can be used to mark a buffer as silent.
1278
1279
pub fn write_to_device (
1279
1280
& self ,
@@ -1305,7 +1306,7 @@ impl AudioRenderClient {
1305
1306
1306
1307
/// Write raw bytes data to a device from a deque.
1307
1308
/// The number of frames to write should first be checked with the
1308
- /// ` get_available_space_in_frames()` method on the [AudioClient] .
1309
+ /// [AudioClient:: get_available_space_in_frames()] method.
1309
1310
/// The buffer_flags argument can be used to mark a buffer as silent.
1310
1311
pub fn write_to_device_from_deque (
1311
1312
& self ,
@@ -1392,7 +1393,7 @@ pub struct AudioCaptureClient {
1392
1393
1393
1394
impl AudioCaptureClient {
1394
1395
/// Get number of frames in next packet when in shared mode.
1395
- /// In exclusive mode it returns None, instead use [AudioClient::get_buffer_size()] or [AudioClient::get_current_padding()].
1396
+ /// In exclusive mode it returns ` None` , instead use [AudioClient::get_buffer_size()] or [AudioClient::get_current_padding()].
1396
1397
/// See [IAudioCaptureClient::GetNextPacketSize](https://learn.microsoft.com/en-us/windows/win32/api/audioclient/nf-audioclient-iaudiocaptureclient-getnextpacketsize).
1397
1398
pub fn get_next_packet_size ( & self ) -> WasapiRes < Option < u32 > > {
1398
1399
if let Some ( ShareMode :: Exclusive ) = self . sharemode {
@@ -1411,7 +1412,7 @@ impl AudioCaptureClient {
1411
1412
}
1412
1413
1413
1414
/// Read raw bytes from a device into a slice. Returns the number of frames
1414
- /// that was read, and the BufferFlags describing the buffer that the data was read from.
1415
+ /// that was read, and the ` BufferFlags` describing the buffer that the data was read from.
1415
1416
/// The slice must be large enough to hold all data.
1416
1417
/// If it is longer that needed, the unused elements will not be modified.
1417
1418
pub fn read_from_device ( & self , data : & mut [ u8 ] ) -> WasapiRes < ( u32 , BufferFlags ) > {
@@ -1548,7 +1549,7 @@ impl AcousticEchoCancellationControl {
1548
1549
/// # Parameters
1549
1550
/// - `endpoint_id`: An optional string containing the device ID of the audio render endpoint to use as the loopback reference.
1550
1551
/// If set to `None`, Windows will automatically select the reference device.
1551
- /// You can obtain the device ID by calling [` Device::get_id` ].
1552
+ /// You can obtain the device ID by calling [Device::get_id() ].
1552
1553
///
1553
1554
/// # Errors
1554
1555
/// Returns an error if setting the echo cancellation render endpoint fails.
0 commit comments