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

Add a feature for MacOS' IOKit/audio/IOAudioTypes.h #92

Closed Pehrsons closed 1 year ago

Pehrsons commented 1 year ago

When querying an AudioStream for its terminal type (kAudioStreamPropertyTerminalType) it will often return a value defined in IOAudioTypes.h (the ranges [INPUT_UNDEFINED, INPUT_MODEM_AUDIO] and [OUTPUT_UNDEFINED, OUTPUT_LOW_FREQUENCY_EFFECTS_SPEAKER]).

This commit adds a feature io_kit_audio that will generate rust bindings for IOAudioTypes.h, so these enum values can be used in rust directly.

Pehrsons commented 1 year ago

Thanks! Version bumped.

Pehrsons commented 1 year ago

Thanks! Could you merge, please?

simlay commented 1 year ago

Thanks! Could you merge, please?

Done, was just waiting for CI to pass and then got distracted.

simlay commented 1 year ago

0.2.14 is published on crates.io.