• 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: AVAssetReaderTrackOutput fails with error code -11800
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AVAssetReaderTrackOutput fails with error code -11800


  • Subject: Re: AVAssetReaderTrackOutput fails with error code -11800
  • From: Brian Willoughby <email@hidden>
  • Date: Sun, 19 Jun 2011 15:49:33 -0700

Did you literally code usleep for 1 second, or is it actually 1 microsecond? The reason I ask is that you could usleep for 1 microsecond on every opened song instead of every 300, and the scheduler would have way more opportunity to switch to higher priority threads. Sleeping for a microsecond is not going to destroy your performance even if you do it between every song. Generally, I find that any time I have a loop in a background thread it makes sense to usleep() on every pass through the loop just to avoid hogging the CPU.

Brian Willoughby
Sound Consulting


On Jun 19, 2011, at 03:27, Heinrich Fink wrote:
thanks for sharing your findings! I have modified my example code to use usleep for 1 second every 300 opened songs. This seems to work very well. With this modification I was able to successfully open and close 10 000 songs on the lower priority queue (which would not have been possible without inserting usleep).


_______________________________________________
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: 
 >Configuring RemoteIO Audio unit to play and record iLBC on the iPhone (From: Fabrice Ferino <email@hidden>)
 >Re: Configuring RemoteIO Audio unit to play and record iLBC on the iPhone (From: Chris Adamson <email@hidden>)
 >AVAssetReaderTrackOutput fails with error code -11800 (From: Zachary Kulis <email@hidden>)
 >Re: AVAssetReaderTrackOutput fails with error code -11800 (From: Heinrich Fink <email@hidden>)
 >Re: AVAssetReaderTrackOutput fails with error code -11800 (From: Zachary Kulis <email@hidden>)
 >Re: AVAssetReaderTrackOutput fails with error code -11800 (From: Zachary Kulis <email@hidden>)
 >Re: AVAssetReaderTrackOutput fails with error code -11800 (From: Heinrich Fink <email@hidden>)

  • Prev by Date: Re: audiounit instrument with cocoa view (ben kamen)
  • Next by Date: Re: audiounit instrument with cocoa view
  • Previous by thread: Re: AVAssetReaderTrackOutput fails with error code -11800
  • Next by thread: Failing to set kAudioOutputUnitProperty_CurrentDevice to HAL
  • Index(es):
    • Date
    • Thread