RustAudio / coreaudio-rs

A friendly rust interface to Apple's Core Audio API.
Apache License 2.0
212 stars 44 forks source link

Add helpers for hog mode #83

Closed HEnquist closed 2 years ago

HEnquist commented 2 years ago

This adds two new helpers for managing hog mode (exclusive access).

HEnquist commented 2 years ago

Does anyone have a moment to take a look at this? It's quite small with no breaking changes.

MichaelHills commented 2 years ago

Hopefully that iOS failure should be fixed the next time you run the checks. Pretty sure I fixed/worked-around it.

HEnquist commented 2 years ago

Thanks for looking! I'll update asap :)

HEnquist commented 2 years ago

I have updated this now. I went with "toggle_hog_mode()" and "get_hogging_pid()". Not the most elegant function names ever, but I think they are at least better than my first suggestion.

MichaelHills commented 2 years ago

Doh looks like iOS build is failing again, after github actions upgraded to macOS 11 from 10.

MichaelHills commented 2 years ago

Looks like this fixes it https://github.com/RustAudio/coreaudio-rs/pull/85

HEnquist commented 2 years ago

Thanks for reviewing and merging! And I see you already fixed the iOS build :)