RustAudio / coreaudio-sys

Raw bindings to the OSX CoreAudio framework generated by bindgen (see coreaudio-rs for a more rust-esque wrapper).
MIT License
69 stars 38 forks source link

How were bindings generated? #3

Closed duane closed 6 years ago

duane commented 7 years ago

I'd like to add support for other parts of the audio toolbox; I'm not entirely sure how the bindings were generated. Is this documented somewhere?

Best, Duane

mitchmindtree commented 7 years ago

Hi @duane :) Bindings were generated using the rust-bindgen crate. I don't remember the exact command as it was quite a while ago, however I remember being able to work it out using the program's --help. Would love to see support for stuff, good luck with it!

Mousterian commented 7 years ago

Hi @duane, I was working on something similar a while back, I ended up forking coreaudio-sys, and never got round to doing a pull request, sorry @mitchmindtree - I was able to regenerate bindings and add another framework, I remember it was a bit fiddly so I noted instructions here: https://github.com/Mousterian/coreaudio-sys/tree/playfile That said it was a while ago, rust-bindgen may have moved on since then, so those instructions may not work now - rust-bindgen seemed to be going through a lot of breaking changes around that time.