Sign in to follow this  
grhufnagl

FLASH - Audio File Compatibility

Recommended Posts

grhufnagl    227
Greetings, I'm looking to see if someone could inform me of any issues with Flash/Actionscript in regards to audio file formats. Are there any specific file formats as well as bit-depth/sampling rate that do not work? I'm working on a game that requires heavily compressed audio and I want to make sure that there will not be any playback issues. Thanks for your help, George

Share this post


Link to post
Share on other sites
nsmadsen    5578
I've always been asked to do: 128k MP3 either stereo or mono (depending on the situation).

The audio engine will need to account for the bookends of silence the MP3 codec puts in, but that is completely do-able.

Thanks,

Nate

Share this post


Link to post
Share on other sites
grhufnagl    227
Nathan,

About the silent padding for mp3's: how do you work around this issue when music is to be looped? Is there an amicable solution or file that will sub will in its place? How about AAC files?

Thanks for the assistance :)

-George

Share this post


Link to post
Share on other sites
nsmadsen    5578
Removing the bookends of silence would make the MP3 file loop-able. Without removing that bit of silence, you'll have a gap during playback. There are options out there to help with this:

Quote:
In order to remove MP3 silence, you will need a special MP3 encoder to remove those frames. Download the mp3loop utility here: http://www.compuphase.com/mp3/mp3loops.htm. This command line tool works in conjunction with LAME MP3 to remove the unwanted frames, so you will need to also build yourself the LAME MP3 library (or find a binary somewhere). You can get the latest source code for that project here: http://sourceforge.net/projects/lame/files/lame/3.98.2/lame-398-2.tar.gz/download. If you're unfamiliar with LAME (shame on you!), it is considered the best free and open source MP3 encoder out there. You can build LAME in VC++ and you shouldn't have any problems compiling it with VS 2008 as everything you need is bundled in that archive (see: lame-398-2.tar.gz/lame-398-2/vc_solution/ folder for Visual Studio solutions).


taken from http://forums.silverlight.net/forums/t/120472.aspx

I've seen many other solutions and several pro teams that I have worked with have solved this issue.

Regarding AAC: it's going to be a bit larger than MP3 so it also depends on the size budget you have to stick with.

Thanks!

Nate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this