Re: New Member
Re: New Member
- Subject: Re: New Member
- From: "B.J. Buchalter" <email@hidden>
- Date: Thu, 03 Aug 2006 16:33:49 -0400
- Thread-topic: New Member
On 8/3/06 3:57 PM, "lazzaro" <email@hidden> wrote:
>
> On Aug 3, 2006, at 12:02 PM, Shawn Erickson wrote:
>
>> Core Audio is a C based API no C++ or Objective-C needed (the later is
>> a superset of C).
>
>
> Is there source code for an example AudioUnit that is
> written in vanilla C? All of the ones I've seen use AUBase.cpp
> and are thus C++ ... some of us have cross-platform issues
> that make it non-trivial to incorporate C++ into our codebases.
> This is the reason why I haven't yet written an AudioUnit
> audio driver for sfront:
>
> http://www.cs.berkeley.edu/~lazzaro/sa/index.html
>
> even though I get a steady stream of email asking me to do so.
> Making sfront capable of generating C++ - compatible audio engines
> may be more work than reverse-engineering how to write a C AudioUnit
> by examining AUBase.app ... but that reverse-engineering looks
> like no fun either, so I let the sfront AudioUnit audio driver requests
> slip down my todo list ...
Why don't you write a C++ wrapper AU that calls into your (well-defined C
audio engine).
All the calls into the audio engine can be encapsulated as "C" API calls.
The underlying AU is component manager, which is a C API; the AU Base class
is an implementation detail.
So, just write a simple AU that is a C++ implemetnation of a wrapper that
wraps your "C" output.
BR,
B.J. Buchalter
Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451
_______________________________________________
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