Skip to content

Second round of correctness fixes on multiple backends - #1335

Merged
roderickvd merged 15 commits into
masterfrom
fix/backend-robustness-round2
Sep 7, 2026
Merged

roderickvd merged 15 commits into
masterfrom
fix/backend-robustness-round2

Conversation

@roderickvd

Copy link
Copy Markdown
Member

This is the result from a second pass comparing cpal against CamillaDSP's backends for correctness and robustness
gaps (first one landed in 0.18.0). Their backends moved on since (next5), so I went through it again.

In full transparency of licensing: CamillaDSP is MPL-2.0, cpal is Apache 2.0. That should be OK: MPL's copyleft covers licensed source files but not ideas or bugs found while reading them. Nothing was copied, rather, every fix was reimplemented against cpal's conventions. @HEnquist let me know if you have any objections.

@LastExceed would you verify the ASIO and WASAPI changes? You'll note that in WASAPI I made some small changes to pave the way for exclusive mode later.

@roderickvd roderickvd added the bug label Aug 22, 2026
@LastExceed

Copy link
Copy Markdown
Collaborator

sure, but might have to wait until monday

@HEnquist

Copy link
Copy Markdown
Contributor

I think it's great if we can share knowledge, absolutely no objections from me!
And I have learned a lot about CoreAudio by looking at cpal and coreaudio-rs, so really nice to be able to give something back :)

@roderickvd

Copy link
Copy Markdown
Member Author

sure, but might have to wait until monday

No worries, let me know when it's done, many of these things we can still backport to stable-0.18 before releasing 0.18.3.

@LastExceed LastExceed left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only so far, haven't tested anything yet. Also can't speak on the changes to non-windows backends, as I am not familiar with them

Comment thread src/host/asio/stream.rs Outdated
Comment thread CHANGELOG.md
Comment thread src/host/wasapi/stream.rs Outdated
Comment thread src/host/wasapi/device.rs
Comment thread src/host/asio/stream.rs
@LastExceed

Copy link
Copy Markdown
Collaborator

ran a couple examples on hardware via ASIO and WASAPI, no problems to report

@roderickvd
roderickvd force-pushed the fix/backend-robustness-round2 branch 2 times, most recently from f69d62f to ca13908 Compare September 1, 2026 16:49
Comment thread src/host/wasapi/stream.rs
@roderickvd
roderickvd force-pushed the fix/backend-robustness-round2 branch from a49ad9d to 5b6146f Compare September 7, 2026 19:37
@roderickvd
roderickvd merged commit cf83483 into master Sep 7, 2026
32 checks passed
@roderickvd
roderickvd deleted the fix/backend-robustness-round2 branch September 7, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants