• 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: kAudioUnitType_FormatConverter and locking the iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kAudioUnitType_FormatConverter and locking the iPhone


  • Subject: Re: kAudioUnitType_FormatConverter and locking the iPhone
  • From: Evan Olcott <email@hidden>
  • Date: Fri, 24 Apr 2009 10:07:44 -0500


On Apr 24, 2009, at 9:38 AM, Doug Wyatt wrote:

Wait ... Come to think of it, one thing that changes when the screen is locked is that your I/O cycle duration can be increased. AUConverter would start getting pulled for more samples at a time. If its max-frames-per-render-cycle is exceeded, its AudioUnitRender would start returning an error to its caller and not write anything into the output buffer...

Wow, this is a good one!

I did a log trace and I noticed that the inNumberFrames changed from 1024 to 4096 when the phone was locked.

I set the kAudioUnitProperty_MaximumFramesPerSlice to 4096 on the AUConverter during the setup and it seems to have fixed the issue.

Thanks, Doug!

Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering

http://www.audiofile-engineering.com/





 _______________________________________________
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: 
 >kAudioUnitType_FormatConverter and locking the iPhone (From: Evan Olcott <email@hidden>)
 >Re: kAudioUnitType_FormatConverter and locking the iPhone (From: Doug Wyatt <email@hidden>)
 >Re: kAudioUnitType_FormatConverter and locking the iPhone (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: kAudioUnitType_FormatConverter and locking the iPhone
  • Next by Date: MP3 Playback through Audio Units
  • Previous by thread: Re: kAudioUnitType_FormatConverter and locking the iPhone
  • Next by thread: MP3 Playback through Audio Units
  • Index(es):
    • Date
    • Thread