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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed

- Breaking: Updated `cpal` to v0.18.2. Wherever rodio exposed a cpal error type
(`StreamError`, `BuildStreamError`, `PlayStreamError`, `DevicesError`,
`DefaultStreamConfigError`, `SupportedStreamConfigsError`) it now uses the
unified `cpal::Error`, re-exported as `CpalError` together with
`CpalErrorKind`. `rodio::DevicesError` is removed.

## Version [0.22.2] (2026-02-22)

### Fixed
Expand Down
184 changes: 86 additions & 98 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ rustdoc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options"]

[dependencies]
cpal = { version = "0.17", optional = true }
cpal = { version = "0.18.2", optional = true }
dasp_sample = "0.11"
claxon = { version = "0.4", optional = true }
hound = { version = "3.5", optional = true }
Expand Down
13 changes: 12 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ The list below only contains required code changes. For a complete list of
changes and new features, see [CHANGELOG.md](CHANGELOG.md).

# rodio 0.22 to current github version
Nothing yet!
- cpal is updated to 0.18, which replaces its separate error types with a single
`cpal::Error` (`rodio::CpalError` in rodio). `rodio::DevicesError` is removed.
- The callback passed to `DeviceSinkBuilder::with_error_callback` now takes
`cpal::Error`. The error callback type of `SpeakersBuilder` and
`MicrophoneBuilder` is now `FnMut(cpal::Error)`.
- Instead of matching the old enum variants, check `err.kind()`
(`cpal::ErrorKind`, `rodio::CpalErrorKind` in rodio), for example
`ErrorKind::DeviceNotAvailable`.
- `BufferUnderrun` is now `ErrorKind::Xrun`.

If you use cpal directly, see the
[cpal upgrade guide](https://github.com/RustAudio/cpal/blob/v0.18.2/UPGRADING.md).

# rodio 0.21.1 to 0.22
- _Sink_ terms are replaced with _Player_ and _Stream_ terms replaced
Expand Down
Loading
Loading