Doesn’t the user have to select the output device? Sent from my iPhone
> On Oct 7, 2019, at 8:07 PM, Jens Alfke via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > > >> 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/zav%40mac.com > > This email sent to z...@mac.com _______________________________________________ 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