From 7e93e01c51604954a1f68e074378d6fd9c0c7bcb Mon Sep 17 00:00:00 2001 From: edwloef Date: Wed, 15 Jul 2026 15:35:18 +0200 Subject: [PATCH] remove `is_format_supported` calls in wasapi `build_*_stream_inner` --- src/host/wasapi/device.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/host/wasapi/device.rs b/src/host/wasapi/device.rs index a9330ad85..f5208d793 100644 --- a/src/host/wasapi/device.rs +++ b/src/host/wasapi/device.rs @@ -866,18 +866,6 @@ impl Device { })?; let share_mode = Audio::AUDCLNT_SHAREMODE_SHARED; - // Ensure the format is supported. - match super::device::is_format_supported(&audio_client, &format_attempt.Format) { - Ok(false) => { - return Err(Error::with_message( - ErrorKind::UnsupportedConfig, - "Stream configuration is not supported in shared mode", - )) - } - Err(e) => return Err(e), - _ => (), - } - // Finally, initializing the audio client audio_client .Initialize( @@ -979,18 +967,6 @@ impl Device { })?; let share_mode = Audio::AUDCLNT_SHAREMODE_SHARED; - // Ensure the format is supported. - match super::device::is_format_supported(&audio_client, &format_attempt.Format) { - Ok(false) => { - return Err(Error::with_message( - ErrorKind::UnsupportedConfig, - "Stream configuration is not supported in shared mode", - )) - } - Err(e) => return Err(e), - _ => (), - } - // Finally, initializing the audio client audio_client .Initialize(