Reputation: 775
I was working on a CoreAudio project when my Mac was on 10.11 where I took the CAPlayThroughExample (https://developer.apple.com/library/archive/samplecode/CAPlayThrough/Introduction/Intro.html#//apple_ref/doc/uid/DTS10004443-Intro-DontLinkElementID_2) and modified only bits and pieces of the Input and Output render functions to access different buffer streams. This code was working for Mac OS 10.11, 10.12, and 10.13. For 10.14 when playing sound from my external audio interface, there was complete silence. When I logged some of the samples from the Input Proc, the buffers were all 0.0
's. So I downgraded my mac back down to 10.13 and the same code worked. I looked around and googled everything but can't seem to find any official resources on apple's website to see if there were any API changes.
Upvotes: 1
Views: 202
Reputation: 331
On 10.14 you need to add NSMicrophoneUsageDescription
to Info.plist
file. More info here.
Upvotes: 2