Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions src/host/wasapi/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Loading