Understood.
I’ve been looking at this for issue for a couple of days and while I hope I am wrong, it appears to not be possible. So far by trial and error I found that the only format accepted by the
mixer is 32 bit floats, 2 channel, non-interleaved. If I change anyone of the attributes, I get an error. I can create the buffer using integer data but I can’t use the mixer. The point of the mixer for me was for prototyping as my original program did not
use it, however I am now concerned because I wish to add effects that I did not have before, I would be forced to use float data.
I started searching for anything relating to my issue and I found this
http://lists.apple.com/archives/coreaudio-api/2006/Jan/msg00034.html
“The Stereo Mixer will take an input that is either mono or stereo, linear pcm and Float 32. Float32 is the canonical format that all AUs accept and many (most) will *only* accept samples that
are Float32. It will not accept inputs where the sample format is integer. The Output Unit will accept integer sample formats (as it provides conversion services).”
It appears I need to rethink my processes unless someone has a solution.
I’m still bouncing this around but I’m getting closer to my second request
My second question is how do I access the buffer directly or more specifically the stereo channels. When I was using CoreAudio APIs (pre-Swift),
I understood but now I’m lost. In coreaudio, I previously used an interleaved buffer. Would someone be kind enough to show me how I could access the channels in both interleaved and non-interleaved.
Thank you any assistance offered,
W.
From: Steven Clark [mailto:email@hidden]
Sent: Tuesday, April 14, 2015 2:26 PM
To: Waverly Edwards; email@hidden
Subject: RE: avfoundation “error -10868”
-10868 is kAudioUnitErr_FormatNotSupported
Found this in my notes, I don’t know if it came from documentation or perusing Apple’s .h files. The macerror command doesn’t seem to know about it.
Steven J. Clark
VGo Communications