Re: Adding info dictionary to AAC export
Re: Adding info dictionary to AAC export
- Subject: Re: Adding info dictionary to AAC export
- From: William Stewart <email@hidden>
- Date: Wed, 20 Dec 2006 11:47:28 -0800
On 19/12/2006, at 4:26 PM, Shawn Erickson wrote:
On 12/19/06, Evan Olcott <email@hidden> wrote:
On Dec 19, 2006, at 3:01 PM, William Stewart wrote:
&info
ALL property values are passed by reference, not by value..
Right, right, I tried that too (i just copied and pasted the
latest attempt
from the code) to the same error.
But to that end, since my app is Cocoa, an NSDictionary object *is
only*
used as a reference: NSDictionary *info;
They can't be declared without the reference, so in this case it's
not
perfectly clear - that's why I tried it both ways...
Based on what William stated I guess the API wants a pointer to a
CFDictionaryRef and CFDictionaryRef is effectively synonymous with
NSDictionary* thanks to toll-free bridging. So...
NSDictionary* info = [NSDictionary ....];
AudioFileSetProperty(... &info);
Personally it seems a little strange that it would want a pointer to a
pointer to a dictionary on the "set" side of things but it may have
been done that way for consistency with other data blobs settable via
that function.
Yes - some of the property values are structs, some UInt32, etc, and
these are all passed by reference.
Humm... what would inDataSize be in this case? sizeof
(CFDictionaryRef)?
Yes - the size is always the size of the property value being passed
by reference
Bill
-Shawn
--
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