mozilla / cubeb-rs

ISC License
61 stars 19 forks source link

Expose async logging for backends #70

Closed ashleyz closed 2 years ago

ashleyz commented 2 years ago

Patch to expose async logging for backends. Adds cubeb_alog! / cubeb_alogv! macros to make use of it.

ashleyz commented 2 years ago

Not sure why this isn't building... I've been testing with cmake -DBUILD_RUST_LIBS=ON . and have used the new macros successfully in cubeb-pulse-rs with the WIP patch I have available here. However, on seeing the build errors here I checked cargo build from directly inside my cubeb-rs directory and was able to repro them locally, so I'll make sure I check that next time.

ChunMinChang commented 2 years ago

Glad to see you are making progress!

I guess the corresponding cubeb changes (to expose cubeb_async_log and its friend) is on the way?

ashleyz commented 2 years ago

Build errors in nightly should be fixed with PR #72

ashleyz commented 2 years ago

Related PR: mozilla/cubeb#714

Related WIP branch to use async calls with PulseAudio: ashleyz/cubeb-pulse-rs