• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting Magic Cookie Crashes Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: MP3 Hardware Decoding on iPad (was Subscription problem)
  • Next by Date: Re: MP3 Hardware Decoding on iPad (was Subscription problem)
  • Previous by thread: Re: MP3 Hardware Decoding on iPad (was Subscription problem)
  • Next by thread: MIDIPacketList numPackets Question
  • Index(es):
    • Date
    • Thread