• 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: Defining multiple custom AU views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining multiple custom AU views


  • Subject: Re: Defining multiple custom AU views
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 15 Apr 2010 15:56:01 -0700

On Thu, Apr 15, 2010 at 3:32 PM, Ken Schutte <email@hidden> wrote:
> typedef struct AudioUnitCocoaViewInfo {
>   CFURLRef     mCocoaAUViewBundleLocation;
>   CFStringRef  mCocoaAUViewClass[1];
> } AudioUnitCocoaViewInfo;
>
>
> Isn't that saying mCocoaAUViewClass is an array of CFStringRef with
> length fixed at 1?  I see hosts accessing mCocoaAUViewClass[i] (for i
>> 0).

It's a common trick in C to use a one-element entry at the end of a
struct to turn the struct into a sort of "header." GCC documentation
has more info: http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html

--Kyle Sluder
 _______________________________________________
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: 
 >Defining multiple custom AU views (From: Ken Schutte <email@hidden>)

  • Prev by Date: iPad as a USB audio interface Was: Re: iPad USB Audio Class 1
  • Next by Date: iPad USB Audio
  • Previous by thread: Defining multiple custom AU views
  • Next by thread: iPad USB Audio
  • Index(es):
    • Date
    • Thread