• 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: AudioQueue Services approximate latency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueue Services approximate latency?


  • Subject: Re: AudioQueue Services approximate latency?
  • From: Eric Wing <email@hidden>
  • Date: Thu, 4 Nov 2010 11:38:34 -0700

On 11/4/10, Stéphane Beauchemin <email@hidden> wrote:
> Hi Eric,
>
> Here is an example I got from this mailing list. I have modified it to make
> it run on the iPhone. I always get a 'perm' error when trying to use the
> hardware decoder. Using the software decoder if fine however. Am I doing
> something wrong?
>
> Just copy the following in .mm file and import it in an empty iPhone app in
> XCode. You will also need to compile CAAudioBufferList.cpp (with very small
> modifications).

I haven't tried your code. But two quick guesses. First, maybe the
audio session mode is set wrong. But I think solo should work, so
that's probably not it.

Second, you are requesting a floating point format
(kAudioFormatFlagIsFloat). iOS prefers 16-bit signed little endian
samples. It could be that the hardware decoder fails because the
hardware chip is not designed for float.

-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
 _______________________________________________
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: AudioQueue Services approximate latency?
      • From: Stéphane Beauchemin <email@hidden>
References: 
 >Re: AudioQueue Services approximate latency? (From: Eric Wing <email@hidden>)

  • Prev by Date: AUFormatConverter sampleRate is zero
  • Next by Date: multitasking
  • Previous by thread: Re: AudioQueue Services approximate latency?
  • Next by thread: RE: AudioQueue Services approximate latency?
  • Index(es):
    • Date
    • Thread