mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Have an easy way to turn on the `cubeb_log!` #70

Open ChunMinChang opened 4 years ago

ChunMinChang commented 4 years ago

The cubeb_log! won't print anything now. We should have a way to turn on those logs so it can help debugging.

ChunMinChang commented 4 years ago

https://github.com/ChunMinChang/cubeb-coreaudio-rs/commit/323550d21b8644731c108fc4e6ac46d514f9c235 could work in Rust Nightly withc_variadic feature.

Another workaround https://github.com/ChunMinChang/cubeb-coreaudio-rs/commit/9af97621f7af5a90630404fd30d48759761cba08 is using cc to build a custom log function in C. Otherwise we need to wait until https://github.com/rust-lang/rust/issues/44930 is fixed.