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(