• 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: 3rd party AU vendor info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3rd party AU vendor info


  • Subject: Re: 3rd party AU vendor info
  • From: Doug Wyatt <email@hidden>
  • Date: Wed, 16 Oct 2002 19:25:00 -0400

I don't know if this has changed on X (!) but my as-of-early-2000 knowledge of Handles says it's important to lock them before dereferencing them, especially when passing the dereferenced pointer to a routine which is obviously going to allocate memory :-)

Doug


On Wednesday, Oct 16, 2002, at 18:14 America/New_York, Chris Reed wrote:

Here's my code for getting the component name (modified a little to make it simpler):

Handle nameHandle = NewHandle(0);
ComponentDescription cd, theComp;
Component comp;
comp = FindNextComponent(NULL, &cd);
GetComponentInfo(comp, &theComp, nameHandle, NULL, NULL);

NSString *compName = [NSString stringWithCString:*nameHandle length:GetHandleSize(nameHandle)];
DisposeHandle(nameHandle);

-chris

On Wednesday, October 16, 2002, at 02:58 pm, Robert Grant wrote:

I'm expanding my app into hosting 3rd party AUs and I'm trying to build
a menu
of 3rd party effects but nowhere can I find a property that'll give me
a human
readable name for the effect (except maybe "CurrentContext" but I want
a context
free name).

I'm now thinking that it's in the ComponentInfo stuff (looking at the
Java examples) but
I'm not sure how to work with this in C (from Components.h):

struct ResourceSpec {
OSType resType; /* 4-byte code */
short resID; /* */
};
typedef struct ResourceSpec ResourceSpec;
struct ComponentResource {
ComponentDescription cd; /* Registration
parameters */
ResourceSpec component; /* resource where
Component code is found */
ResourceSpec componentName; /* name string resource */
ResourceSpec componentInfo; /* info string resource */
ResourceSpec componentIcon; /* icon resource */
};

The info I want is in componentName I believe but how to I get it out
of a ResourceSpec.

Thanks,

Robert.
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden http://www.sonosphere.com
_______________________________________________
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: 3rd party AU vendor info
      • From: Chris Reed <email@hidden>
References: 
 >Re: 3rd party AU vendor info (From: Chris Reed <email@hidden>)

  • Prev by Date: Re: 3rd party AU vendor info
  • Next by Date: Re: 3rd party AU vendor info
  • Previous by thread: Re: 3rd party AU vendor info
  • Next by thread: Re: 3rd party AU vendor info
  • Index(es):
    • Date
    • Thread