Re: issues with AUHAL input render
Re: issues with AUHAL input render
- Subject: Re: issues with AUHAL input render
- From: Randy Locklair <email@hidden>
- Date: Tue, 11 Dec 2018 09:17:18 -0500
Just replying to the list for posterity reason. Stefan Huber was nice
enough to reply to my email suggesting I check out Mojave security issues,
after my symptoms sounded familiar. That turned out to be exactly the
problem. The link he shared:
http://mhsecure.com/faq/index.php?action=artikel&id=350
I basically just added something along the lines of:
*if* ([AVCaptureDevice
authorizationStatusForMediaType:AVMediaTypeAudio]!=AVAuthorizationStatusAuthorized)
{
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio
completionHandler:^(*BOOL* granted) {
}];
}
And made the appropriate Info.plist changes and we were golden again. VERY
INTERESTINGLY, the Bit Accurate drivers seem to bypass all of this security
stuff, but the basic Core Audio drivers would zero out audio data if you
don’t have the permissions.
Thanks again Stefan. Just wanted to leave the information on the list in
case anyone else runs into this!
Randy
On December 10, 2018 at 3:24:31 PM, Randy Locklair (email@hidden)
wrote:
Hi There:
I’m working with a project that is using AUHAL to read data from an audio
interface. I’ve isolated the issue I’m having to a very small and
non-specific example which I am happy to share, but in an effort to keep
the noise down I figured I’d try explaining it instead (its rather simple…)
I have a very basic example that opens up an AUHAL unit and reads audio
data from an input callback.
I have 3 devices (well, two, one has two different drivers…) attached to
the machine, and the code only works with one interface.
I have an Electron Digitakt that has a Bit Accurate and a Core Audio
driver, and I have a Focusrite Scarlett 18i20 with just its base driver.
The Electron Bit Accurate driver works great— no matter what configuration
I set up it works. An unchanged ASBD, a clear ASBD with 16 bit int data,
etc., just about anything that makes sense works.
I select either of the other devices, either the Electron on the Core Audio
device, OR the Focusrite, and I just get zeros back from AudioUnitRender.
Anyone ever run into anything like this and have any ideas?
Thanks so much, I’ve been searching my butt off and haven’t found anything
online…and the fact that its working with one but not the other driver for
the same device has me going nuts (but hopefully is a big clue to someone
else…)
Thanks!!!
Randy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden