Skip to main content
Participating Frequently
December 5, 2011
Question

Adobe AIR for iphone app: can't play audio properly

  • December 5, 2011
  • 2 replies
  • 1174 views

I just developed an App by using adobe air. It contains some animations with background music in mp3 format. The problem is that the music is very jerky when the animation is playing... FYI, this is the way how I play audio in flash:new Sound(new URLRequest("m3.mp3")).play() Have I done anything wrong?

BTW, the funny thing is that if you hit the HOME button, and then come back to the app again, everything plays beautifully...

Any comments would be appreciated!!! Will be waiting for the answer online.

This topic has been closed for replies.

2 replies

January 11, 2012

Try the loading sound internally method through sound channels and such.

Great tutorial below.

http://www.republicofcode.com/tutorials/flash/as3sound/

var mySound:Sound = new Sound();

var myChannel:SoundChannel = new SoundChannel();

mySound.load(new URLRequest("myFavSong.mp3"));

myChannel = mySound.play();

I just finished an app that uses a lot of audio while stuff is animated on the timeline and the sound responds well on all iOS devices. (havent tested on 3GS yet)

Adobe Employee
December 14, 2011

How are you packaging the app, In fast or standard mode?

Participating Frequently
December 14, 2011

standard mode. I also tried in fast mode. It doesn't make any difference...

Adobe Employee
December 14, 2011

I would request you to share some piece of code in which the same behavior is visible.