• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: can multiple audio units be put in a single bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can multiple audio units be put in a single bundle?


  • Subject: Re: can multiple audio units be put in a single bundle?
  • From: Taylor Holliday <email@hidden>
  • Date: Tue, 16 Jun 2015 00:17:57 -0700

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@hidden> wrote:

On Jun 15, 2015, at 9:53 PM, Taylor Holliday <email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >can multiple audio units be put in a single bundle? (From: Taylor Holliday <email@hidden>)
 >Re: can multiple audio units be put in a single bundle? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: can multiple audio units be put in a single bundle?
  • Next by Date: Re: can multiple audio units be put in a single bundle?
  • Previous by thread: Re: can multiple audio units be put in a single bundle?
  • Next by thread: Re: can multiple audio units be put in a single bundle?
  • Index(es):
    • Date
    • Thread