Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is initial bulk and my first time working Rust <-> C for real, but I hope it provides something to base on.
Overview
crates/firewheel-ccrate that uses cbindgen to generate header (include/firewheel-c.h)examples/bindingsexample with one main.c example and two bash scripts for simplicity (cpal.sh and rtaudio.sh)Disclaimer: I hope it will be useful, but feel free to fix or alter it in any way. I for sure lack C audio usage experience since with both backends I have issue when trying to connect nodes (with cpal core dumping and rtaudio giving hell of a cpp error dump)
crates/forewheel-c/src/lib.rs content
Opaque types
Unions
Functions