Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-01-2010, 12:15 PM   #2 (permalink)
Bersaelor
Registered Member
 
Join Date: Jan 2010
Posts: 4
Default

For all I know the iPhone only has hardware support to play one compressed-audio-file at a time. (i.e. mp3)

I use an AVAudioplayer to play mp3 music only when the iPod is currently not playing any other music. So for me, using AVAudioPlayer means no performance difference, as long as one makes sure only one mp3 is currently playing. Starting a second AVAudioPlayer means the second song gets decoded by the software, which is computation-intensive. (Remember the users iPod App may be playing in the background when your app is started).

For Effects I use "AudioServicesPlaySystemSound" which doesn't interfere with performance either, but the effects then need to be uncompressed and less then 5 secs. A nice file format for uncompressed audio files seems to be "caf" which can be made from a wav but is considerably smaller even without compression.
Bersaelor is offline   Reply With Quote
 

» Advertisements
» Online Users: 838
24 members and 814 guests
ADY, AndreaT, AragornSG, Creativ, Desert Diva, Donovan472, dreamer11, elhanche, elliotbrady, hermi7jami, higgey, ilmman, iphone.savvy, iph_s, jimbo, meandroz, sialcasa, supasounds, TamsiE, Tanya Mir, TTStu, VikMyr, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,864
Threads: 89,223
Posts: 380,687
Top Poster: BrianSlick (7,129)
Welcome to our newest member, elliotbrady
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:48 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.