Re: Setting Magic Cookie Crashes Tiger
Re: Setting Magic Cookie Crashes Tiger
- Subject: Re: Setting Magic Cookie Crashes Tiger
- From: Vassilis <email@hidden>
- Date: Mon, 14 Jun 2010 15:52:33 +0300
Hello Bob,
Thank you for your reply. I was indeed able to overcome the issue with your suggestion, although I have two things
to note:
1. when file type is kAudioFileCAFType getPropertyInfo and setProperty crash always and getProperty crashes depending
on the k-parameter passed. I have not tested extensively but can say that when file type is mp4 things work ok, but:
2. i have a code that does the decompression from alac to wav and now the sample count of files using the mp4
file type (in leopard\tiger) are some tenths of samples shorter than the corresponding leopard caf filetype routine, and it is important to say that caf in leopard does lossless in sample count whereas this new code "looses" some samples.
Any idea about why this happens?
Kind Regards,
Vas.
On Fri, Jun 4, 2010 at 11:58 PM, Bob Aron
<email@hidden> wrote:
Vassilis,
Does the same problem occur if your destination file is mp4? or your destination format to caff is something other than alac (i.e. 'aac ')?
-bob aron
On May 18, 2010, at 10:15 AM, Vassilis Pantazis wrote:
> 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
_______________________________________________
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