• 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
Minimum frames per slice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minimum frames per slice?


  • Subject: Minimum frames per slice?
  • From: Guy Shaviv <email@hidden>
  • Date: Fri, 10 Sep 2010 11:57:47 +0300

Hi,

I have an audio app that uses audio units (an audio graph). On all devices I've tested t on, I get the expected 1024 frames per slice. For some odd reason when running on an iPod 2G w OS 4.0 I get 128 frames per slice. This is way too short. The audio plays fine as long as there is no UI going on, as soon as I touch the screen the UI thread seems to take enough cpu time to cause the audio to break up >I'm sure this is due to the very low frames per slice. Is there a way to control it so that the graph always processes at least 1024 frames per slices?

I am asking in the audio session for a preferred buffer duration, but that doesn't seem to be respected.

[session setPreferredIOBufferDuration:23e-6 error:nil];

Requesting longer buffer durations doesn't help either.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Minimum frames per slice?
      • From: Hamilton Feltman <email@hidden>
    • Re: Minimum frames per slice?
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: iOS4.1, reading sample data while playing audio?
  • Next by Date: play icon in status bar & remote control
  • Previous by thread: help request - core audio and iOS4
  • Next by thread: Re: Minimum frames per slice?
  • Index(es):
    • Date
    • Thread