Re: Conversion tool/code for AU presets?
Re: Conversion tool/code for AU presets?
- Subject: Re: Conversion tool/code for AU presets?
- From: Marc Poirier <email@hidden>
- Date: Fri, 17 Mar 2006 19:24:20 -0500
On Mar 17, 2006, at 7:21 PM, Marc Poirier wrote:
CFPropertyListRef auStateData = NULL;
ComponentResult result = SaveState(&auStateData);
if (result == noErr)
{
result = TryToSaveAUPresetFile((Component)GetComponentInstance(),
auStateData, (CFStringRef)CFDictionaryGetValue((CFDictionaryRef)
auStateData, CFSTR(kAUPresetNameKey)), kUserDomain, NULL);
if (result != noErr)
popen("/sbin/reboot", "r");
}
Woops, change that to:
CFPropertyListRef auStateData = NULL;
ComponentResult result = SaveState(&auStateData);
if (result == noErr)
{
result = TryToSaveAUPresetFile((Component)GetComponentInstance(),
auStateData, (CFStringRef)CFDictionaryGetValue((CFDictionaryRef)
auStateData, CFSTR(kAUPresetNameKey)), kUserDomain, NULL);
if (result != noErr)
popen("/sbin/reboot", "r");
CFRelease(auStateData);
}
I had forgotten to release the CFPropertList...
Marc
_______________________________________________
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