On Sun, Jan 31, 2016 at 4:08 PM, Charles Constant <[email protected]> wrote:
> Does anyone know of any sample code for an AudioUnit written in plain C > (as opposed to C++, or Obj-C)? ...assuming that is even possible. > > The most relevant references I've found, so far, for what I need to do are > Apple's "AUBase.cpp" and "ReverseOfflineUnitVersion.cpp" examples. I have > very little C++ experience, and have no idea how I could implement this in > C. > > I realize C++ is "the" choice writing AudioUnits. However (a) the > AudioUnit I need to write is very simple (not much more than an offline > mixer) (b) I can reuse some code from my existing C render procs (c) C++ > would add extra time for me to get up to speed with a mixed C++/Swift > project. My guess is that plain C would work better in my current project, > if there's some sample code of a pure C AudioUnit. > You cannot do this in any sensible way. Almost all legal C code is legal C++ code. What do you think you're trying to avoid?
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
