Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **WASAPI**: Default device changes no longer report `DeviceChanged`, which wrongly implied the stream had rerouted automatically.
- **WASAPI**: Reported buffer sizes are no longer off by one frame.
- **WASAPI**: `Stream::drop`, `play`, and `pause` no longer panic when the device is lost.
- **WASAPI**: Output streams no longer reject formats that the built-in resampler can convert.
- **WebAudio**: Fix stale audio output when a data callback wrote a partial buffer.
- **WebAudio**: Fix unsound `Send + Sync` on `Stream` when compiled with `+atomics`.
- **WebAudio**: Fix `Host::is_available()` always returning `true`, even in non-window contexts.
Expand Down
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