yury / cidre

Apple frameworks bindings for rust
MIT License
43 stars 2 forks source link

Can I record audio using core_audio? #21

Open kusaanko opened 3 hours ago

kusaanko commented 3 hours ago

I can't find kAudioDevicePropertyStreamConfiguration property in core_audio. https://developer.apple.com/documentation/coreaudio/1545866-anonymous/kaudiodevicepropertystreamconfiguration Do Core Audio implementations support audio recording?

yury commented 2 hours ago

Hello, what kind of recording you would like? I'm planning to implement AudioFile api today/tomorrow. Or you need different api?

PS: Added missing props.

kusaanko commented 2 hours ago

Hi, I'm new to macOS API, so I don't know if this answers your question, but I want to use AudioUnit API. https://developer.apple.com/documentation/audiotoolbox/audio_unit_v2_c_api https://developer.apple.com/documentation/audiotoolbox/aurendercallbackstruct

yury commented 2 hours ago

This examples you want.

I will provide example app tomorrow

kusaanko commented 2 hours ago

Oh I thought that all examples are included in examples directory. I will take a look later. Thank you!

yury commented 2 hours ago

They are actually basic tests. But I will provide example app to.