Oh, actually it's the same exact class, so my question is really how to set
up a bundle with two AUs in it.

Looks like I have to keep using the .r file for compatibility with Ableton
Live (possibly others). I tried two .r files (effect and instrument) but
that only produced one AU. My .r file looks like:

#include <AudioUnit/AudioUnit.r>


#include "AudulusAUVersion.h"


// Note that resource IDs must be spaced 2 apart for the 'STR ' name and
description

#define kAudioUnitResID_Audulus 1000


#define RES_ID kAudioUnitResID_Audulus

#define COMP_TYPE kAudioUnitType_MusicDevice

#define COMP_SUBTYPE Audulus_COMP_SUBTYPE

#define COMP_MANUF Audulus_COMP_MANF


#define VERSION kAudulusAUVersion

#define NAME "Audulus: Audulus"

#define DESCRIPTION "Audulus"

#define ENTRY_POINT "AntimatterAUEntry"


#include "AUResources.r"

How can I add a second AU to the .r file?

thanks!

On Mon, Jun 15, 2015 at 11:40 PM, Jens Alfke <[email protected]> wrote:

>
> On Jun 15, 2015, at 9:53 PM, Taylor Holliday <[email protected]> wrote:
>
> Is there a way I could include both AUs in a single bundle?
>
>
> You’d have to rename that class in one of the bundles. Objective-C doesn’t
> allow two classes with the same name to be loaded in the same process.
>
> Usually the easiest way to do this without having to edit a bunch of
> source code is to use the preprocessor, e.g. in one of the targets use a
> prefix header that contains
> #define AUViewListener AUViewListenerForInstrument
>
> —Jens
>



-- 
*W. Taylor Holliday*
Founder
Audulus LLC
 _______________________________________________
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]

Reply via email to