Re: AudioQueue Services approximate latency?
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