Setting Magic Cookie Crashes Tiger
Setting Magic Cookie Crashes Tiger
- Subject: Setting Magic Cookie Crashes Tiger
- From: Vassilis Pantazis <email@hidden>
- Date: Tue, 18 May 2010 20:15:05 +0300
Hello,
I am trying to convert a wav file to an alac file. I have been doing it in Leopard for a long time with success,
but when I ran my code in Tiger (10.4.7 and 10.4.11) it gives me a bad access violation and crashes when i try to set the magic cookie.
The fundamental calls are:
err = AudioFileCreate(&myParentRef, (CFStringRef)myFileName, kAudioFileCAFType, [myAudioConverter outputFormat], 0, &myFileRef, &myExportFileID);
// The following code crashes
if (0 != [myAudioConverter magicCookieSize]) {
err = AudioFileSetProperty(myExportFileID,
kAudioFilePropertyMagicCookieData,
[myAudioConverter magicCookieSize],
[myAudioConverter magicCookie]);
It doesn't return an error, it crashes. I need to stress that the exact same code runs ok in Leopard and Snow. But I need to use it on Tiger, so any help is
appreciated.
Kind regards to all, it is my first mail in this list.
Vas.
_______________________________________________
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