Re: proper Property
Re: proper Property
- Subject: Re: proper Property
- From: William Stewart <email@hidden>
- Date: Thu, 10 Aug 2006 12:12:17 -0700
Sometimes. :-)
I think the property you are referring to is the SupportedNumChannels
property - and that returns **an array* of AUChannelInfo. In this
case you don't know how big the property can be, so you have to do
GetInfo first.
In other cases - CF based properties are good examples - the size of
the property is well understood:
sizeof(CFDictionaryRef) (for the "ClassInfo" property for instance).
The CAAudioUnit C++ class is a good wrapper class around audio units
and does some of the basic property handling for you - it can be
found in the PublicUtility code in /Developer/Examples/CoreAudio
Bill
On 09/08/2006, at 5:16 PM, Taybin Rutkin wrote:
I'm new to the CoreAudio style API.
If the size of a returned value is known before hand, such as
AUChannelInfo, should one still use GetPropertyInfo() to check the
size prior to GetProperty()?
Taybin
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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