Page 1 of 1

Audio issues with iPhone

PostPosted: Jan 24, 2009 @ 3:07pm
by Nacho84

PostPosted: Jan 26, 2009 @ 9:40am
by edge

PostPosted: Jan 26, 2009 @ 11:58am
by tinybulb.com

PostPosted: Jan 26, 2009 @ 12:24pm
by Nacho84

PostPosted: Jan 27, 2009 @ 9:10am
by edge

PostPosted: Jan 27, 2009 @ 9:30am
by tinybulb.com

PostPosted: Jan 27, 2009 @ 10:17am
by Nacho84

PostPosted: Jan 28, 2009 @ 10:54am
by edge

PostPosted: Jan 28, 2009 @ 7:07pm
by Nacho84

PostPosted: Jan 29, 2009 @ 8:58am
by edge

PostPosted: Jan 29, 2009 @ 7:07pm
by Nacho84
Hi edge,

Thanks for your prompt replies.

The CrashLander sample has been removed from Apple's website because, from what I've read in some posts, it has some errors.

I've been asking about this whole issue in other forums and it seems that other developers are also struggling to play looped mp3's. So far, the workaround solution seems to be adding a fade out effect at the end of the file. I might try your suggestion using AudioToolbox and queueing the files, but it will surely take me many days, do you know for sure if that solution solves the silence gap between files?

Regarding the orientation, I'm attaching a very simple project to this post with a landscaped application. Noticed that I've to swap the coordinates and substract the X coordinate from 320 in order to get the Y coordinate. Maybe it's an emulator issue and the coordinates received via the pnt variable in the function callbacks work fine in the real device but, as I've said in a previous post, I don't have an iPhone to test it :(

Thanks again for all your help,

--Nacho

PostPosted: Jan 30, 2009 @ 12:58pm
by edge
Hi Nacho,

Perhaps there is another way to get ahold of the CrashLander sample? The sound framework in that sample is really useful. If you can find it, the solution to loop mp3's, is to call the AudioQueueEnqueueBuffer function multiple times:
- When first playing your file, call it twice
- Manually handle a timer (it depends on the length of the song), if it's past a certain value then call it again (so it will always be two times in the queue)

We will get back about your sample next week.

PostPosted: Feb 2, 2009 @ 11:29am
by edge

PostPosted: Feb 2, 2009 @ 11:36am
by Nacho84