• 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
Re: ExtAudioFileDispose locks on iOS 5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFileDispose locks on iOS 5


  • Subject: Re: ExtAudioFileDispose locks on iOS 5
  • From: Zachary Kulis <email@hidden>
  • Date: Mon, 21 Nov 2011 08:02:34 -0500

Stevo - have you tried replacing ExtAudioFileWrite() with ExtAudioFileWriteAsync() ? I ran into a similar problem when using a pthread cancellation cleanup handler and attempting to call ExtAudioFileDispose() from within the cleanup handler. Turns out that ExtAudioFileDispose() was blocking indefinitely, waiting on a condition variable. I think there must be a bug in the implementation. The call should not block indefinitely.

-Zach

Still trying to convert simple uncompressed audio to AAC using CoreAudio.  This is the 2nd problem we are now seeing with new devices/OS versions:

Basically it goes like this:
-In a method called from performSelectorInBackground:

Create file with
ExtAudioFileCreateWithURL()
ExtAudioFileSetProperty()

Call lots of
ExtAudioFileWrite()

Finally call
ExtAudioFileDispose()

Other than an iPad 2 running iOS 4.3.5 (which has a problem mailed previously), all devices tested running iOS 4.x have been doing this fine for months.  Only on the new iPhone 4S and iPad 2 running iOS 5.0 do we see the problem where the call to ExtAudioFileDispose blocks indefinitely with the following stack trace:

How do we get this to work? -Stevo
_______________________________________________ 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

References: 
 >ExtAudioFileDispose locks on iOS 5 (From: Stevo Brock <email@hidden>)

  • Prev by Date: Re: Varispeed ios
  • Next by Date: Preroll semantics & clarification of kAudioUnitProperty_OfflineRender
  • Previous by thread: ExtAudioFileDispose locks on iOS 5
  • Next by thread: ExtAudioFileSetProperty fails with bizarre error code
  • Index(es):
    • Date
    • Thread