Re: What is the cheapest way to play an AAC or mp3 on iphone
Re: What is the cheapest way to play an AAC or mp3 on iphone
- Subject: Re: What is the cheapest way to play an AAC or mp3 on iphone
- From: Steven Winston <email@hidden>
- Date: Thu, 1 Oct 2009 11:12:23 -0700
Tom,
AudioQueueServices is actually pretty good for games. It's what I
used when I wrote the audio engine for all Skyworks games (also what I
used with Realtime's Audio Adventure). The online examples add a lot
of overhead, and don't play well for some purposes as they were
written to be examples and teach and not to be production quality.
You're gonna want to custom write one. What I'd recommend is using
mp3 for background audio and ima4/caf for one shots.
Thanks,
Steve
On Thu, Oct 1, 2009 at 8:20 AM, Doug Wyatt <email@hidden> wrote:
>
> On Sep 30, 2009, at 22:25 , Tom Schulz wrote:
>
>> I am finalling my iphone game, and pretty much my last bug is the fact
>> that when music plays, it noticeably affects framerate. I have tried to use
>> AVAudioPlayer, I used AudioQueue code from an example, and both of them make
>> the 3d animations twitchy.
>>
>> What's the cheapest / fastest combination of API and format on the iphone,
>> so I can avoid this performance problems and finally ship this thing?
>
> It sounds like you may be getting a software codec instead of the hardware
> codec. AAC via AVAudioPlayer should perform well without interfering with
> graphics if you have the hardware codec.
>
> What AudioSession category are you using? For a game with background music,
> you probably should be using kAudioSessionCategory_SoloAmbientSound.
>
> Doug
>
> _______________________________________________
> 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
>
_______________________________________________
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