> On Oct 6, 2019, at 1:07 PM, Eric Dolecki via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > Quick Swift question. Is it fairly easy to take audio and play it to > headphones (not a recording) and be able to turn the microphone on/off? I’m > not interested in doing any analysis, just turning outside audio on/off.
That's an audio question, not a Swift question. And audio stuff is rarely straightforward. I don't think AVFoundation covers 'live' stuff like this — it's more about recording and playback — so you're probably looking at the CoreAudio layer, which is a fairly gnarly C API with a lot of complex C data structures. I wouldn't think writing Swift glue for that would be easy at all :( [Disclaimer: I haven't done any audio programming in a few years, so I may not know about some wonderful new Swift-level audio API that makes this easy.] —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com