Skip to content
Closed
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improved queue, buffer, mixer and sample rate conversion performance.

### Fixed

- Fixed a 1-sample channel shift (L/R swap) in Player when rapidly appending stereo sources to an empty queue.
- Fixed `Player::skip_one` not decreasing the player's length immediately.
- Fixed `Source::current_span_len()` to consistently return total span length.
- Fixed `Source::size_hint()` to consistently report actual bounds based on current sources.
Expand Down
4 changes: 2 additions & 2 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ mod tests {
let (tx, rx) = queue::queue(keep_alive);
assert_eq!(
rx.channels(),
nz!(1),
"Initial channels should be 1 (keep_alive={keep_alive})"
nz!(2),
"Initial channels should be 2 (keep_alive={keep_alive})"
);
assert_eq!(
rx.sample_rate(),
Expand Down
2 changes: 1 addition & 1 deletion src/source/empty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Source for Empty {

#[inline]
fn channels(&self) -> ChannelCount {
nz!(1)
nz!(2) // Default to 2 (stereo) to prevent a 1-sample channel shifting bug in the Queue when swapping to stereo sources.
}

#[inline]
Expand Down
Loading