Re: Adding info dictionary to AAC export
Re: Adding info dictionary to AAC export
- Subject: Re: Adding info dictionary to AAC export
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 19 Dec 2006 16:26:15 -0800
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.
Humm... what would inDataSize be in this case? sizeof(CFDictionaryRef)?
-Shawn
_______________________________________________
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