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
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
- Breaking: `Done` now calls a callback instead of decrementing an `Arc<AtomicUsize>`.

### Added

- Added `Skippable::skipped` function to check if the inner source was skipped.

### Changed

- Breaking: `Done` now calls a callback instead of decrementing an `Arc<AtomicUsize>`.
- Updated `cpal` to v0.18.

### Fixed

- Fixed `Player::skip_one` not decreasing the player's length immediately.

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

### Fixed

- Incorrectly set system default audio buffer size breaks playback. We no longer use the system default (introduced in 0.22 through cpal upgrade) and instead set a safe buffer duration.
- Audio output fallback picked null device leading to no output.
- Mixer did not actually add sources sometimes.
Expand Down
5 changes: 2 additions & 3 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 @@ -116,7 +116,7 @@ rustdoc-args = ["--cfg", "docsrs"]
cargo-args = ["-Zunstable-options"]

[dependencies]
cpal = { version = "0.17", optional = true }
cpal = { git = "https://github.com/RustAudio/cpal", optional = true }
dasp_sample = "0.11"
claxon = { version = "0.4", optional = true }
hound = { version = "3.5", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/microphone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl Microphone {
match config.sample_format {
$(
cpal::SampleFormat::$sample_format => device.build_input_stream::<$generic, _, _>(
&config.stream_config(),
config.stream_config(),
move |data, _info| {
for sample in SampleTypeConverter::<_, Sample>::new(data.into_iter().copied()) {
let _skip_if_player_is_behind = tx.push(sample);
Expand Down
2 changes: 1 addition & 1 deletion src/speakers/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ where
match config.sample_format {
$(
cpal::SampleFormat::$sample_format => device.build_output_stream::<$generic, _, _>(
&cpal_config2,
cpal_config2,
move |data, _| {
data.iter_mut().for_each(|d| {
*d = source
Expand Down
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl MixerDeviceSink {
match config.sample_format {
$(
cpal::SampleFormat::$sample_format => device.build_output_stream::<$generic, _, _>(
&cpal_config,
cpal_config,
move |data, _| {
data.iter_mut().for_each(|d| {
*d = samples
Expand Down
Loading