• 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: My CarbonView isn't showing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My CarbonView isn't showing up


  • Subject: Re: My CarbonView isn't showing up
  • From: Darrin Cardani <email@hidden>
  • Date: Fri, 27 Jun 2003 13:32:01 -0500

On Wed, 25 Jun 2003, Darrin Cardani wrote:

>when AudioUnitHosting gets
> to it's AUEditWindow::SetUnitToDisplay () function, it attempts to
> find my view component and gets an error on this call:
>
> verify_noerr(OpenAComponent(editComp, &mEditView));
>
> I've got the entry point defined in my export file, I've got the
> 'thng' resource defined in my resource file, and I've got the entry
> point defined in the code, too, but AudioUnitHosting doesn't find it.
> What am I missing?

At 4:14 PM -0500 6/25/03, Marc Poirier wrote:
Are you overriding GetNumCustomUIComponents and GetUIComponentDescs
properly?

I believe so. Here's what I have:

int GetNumCustomUIComponents () { return 1; }
void GetUIComponentDescs (ComponentDescription* inDescArray) {
inDescArray[0].componentType = kAudioUnitCarbonViewComponentType;
inDescArray[0].componentSubType = 'XYZA';
inDescArray[0].componentManufacturer = 'BCDE';
inDescArray[0].componentFlags = 0;
inDescArray[0].componentFlagsMask = 0;
}

where 'XYZA' and 'BCDE' are the sub-type and manufacturer code I have in my .r file:

// SampleEffectUnit
#define RES_ID kAudioUnitResID_SampleEffectUnit
#define COMP_TYPE kAudioUnitType_Effect
#define COMP_SUBTYPE 'XYZA'
#define COMP_MANUF 'BCDE'
#define VERSION 0x00010000
#define NAME "My Fancy Audio Unit Name"
#define DESCRIPTION "My Fancy Audio Unit Description"
#define ENTRY_POINT "SampleEffectUnitEntry"

#include "AUResources.r"

// ____________________________________________________________________________
// component resources for Audio Unit Carbon View
#define RES_ID 10100
#define COMP_TYPE kAudioUnitCarbonViewComponentType
#define COMP_SUBTYPE 'XYZA'
#define COMP_MANUF 'BCDE'
#define VERSION 0x00010000
#define NAME "My Fancy AUView Name"
#define DESCRIPTION "My Fancy AUView Description"
#define ENTRY_POINT "MyFancyAUViewEntry"

#include "AUResources.r"

In my exports file I have this:

_SampleEffectUnitEntry
_MyFancyAUViewEntry

So I'm at a loss for why it can't find a matching component from what GetUIComponentDescs is returning. Any idea?

Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: My CarbonView isn't showing up
      • From: Urs Heckmann <email@hidden>
  • Prev by Date: Re: My CarbonView isn't showing up
  • Next by Date: Re: My CarbonView isn't showing up
  • Previous by thread: Re: My CarbonView isn't showing up
  • Next by thread: Re: My CarbonView isn't showing up
  • Index(es):
    • Date
    • Thread