Skip to content

Commit 55ca7d9

Browse files
committed
feat: track cpal v0.18
1 parent 4aa22e8 commit 55ca7d9

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
88
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

1010
## Unreleased
11-
- Breaking: `Done` now calls a callback instead of decrementing an `Arc<AtomicUsize>`.
11+
12+
### Added
13+
1214
- Added `Skippable::skipped` function to check if the inner source was skipped.
15+
16+
### Changed
17+
18+
- Breaking: `Done` now calls a callback instead of decrementing an `Arc<AtomicUsize>`.
19+
- Updated `cpal` to v0.18.
20+
21+
### Fixed
22+
1323
- Fixed `Player::skip_one` not decreasing the player's length immediately.
1424

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

1727
### Fixed
28+
1829
- 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.
1930
- Audio output fallback picked null device leading to no output.
2031
- Mixer did not actually add sources sometimes.

Cargo.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ rustdoc-args = ["--cfg", "docsrs"]
116116
cargo-args = ["-Zunstable-options"]
117117

118118
[dependencies]
119-
cpal = { version = "0.17", optional = true }
119+
cpal = { git = "https://github.com/RustAudio/cpal", optional = true }
120120
dasp_sample = "0.11"
121121
claxon = { version = "0.4", optional = true }
122122
hound = { version = "3.5", optional = true }

src/microphone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl Microphone {
282282
match config.sample_format {
283283
$(
284284
cpal::SampleFormat::$sample_format => device.build_input_stream::<$generic, _, _>(
285-
&config.stream_config(),
285+
config.stream_config(),
286286
move |data, _info| {
287287
for sample in SampleTypeConverter::<_, Sample>::new(data.into_iter().copied()) {
288288
let _skip_if_player_is_behind = tx.push(sample);

src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ impl MixerDeviceSink {
539539
match config.sample_format {
540540
$(
541541
cpal::SampleFormat::$sample_format => device.build_output_stream::<$generic, _, _>(
542-
&cpal_config,
542+
cpal_config,
543543
move |data, _| {
544544
data.iter_mut().for_each(|d| {
545545
*d = samples

0 commit comments

Comments
 (0)