Skip to content

Docs for cubeb-core, and improve backend selection in examples#75

Open
orottier wants to merge 2 commits intomozilla:masterfrom
orottier:master
Open

Docs for cubeb-core, and improve backend selection in examples#75
orottier wants to merge 2 commits intomozilla:masterfrom
orottier:master

Conversation

@orottier
Copy link
Contributor

No description provided.

// setup context
let ctx_name = CString::new(ctx_name).unwrap();
let ctx = Context::init(Some(ctx_name.as_c_str()), None);
let ctx = Context::init(Some(ctx_name.as_c_str()), backend_c);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's a small functional change, we actually try to select the provided backend.
FYI, on my Mac, I can only get audiounit to work, is audiounit-rust not provided by default?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not by default no, cubeb can be built without a rust toolchain. It's at https://github.com/mozilla/cubeb-coreaudio-rs/, https://github.com/mozilla/cubeb-coreaudio-rs/blob/trailblazer/build-audiounit-rust-in-cubeb.sh has the steps to build it, but really it's just cloning it in the src/ directory of the cubeb dir, and building cubeb with -DBUILD_RUST_LIBS="ON"

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.

2 participants