Re: Defining multiple custom AU views
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