MP3 corruption

hi, so im trying to add some music to my game. it is an mp3, and i put it under the character controller prefab. i can here it just fine, except when i play the game it seems to be corrupted somehow, because it sometimes just fast forwards or rewinds 10 seconds, and it has all kinds of weird high pitched bleeps and bloops you might hear if your TV is losing signal lol. anyway how can i fix this?

P.S, when i go and play the mp3 from my assets folder it sounds just fine, and i am not using unity 3.5.

Hey,

Have you tried deleting it out of your assets, and then putting it back in???

If you can play the file, and it sounds fine, then that means there isn’t any corruption in the actual file itself! It means that it must have stuffed up somewhere in Unity!

So reimport the song into your assets, and don’t change any major settings, place it back on your game object, and play the game!!!

See how that works!

-Grady

Hi,

If your target platform is a mobile platform (i.e. iOS or Android), import the file into Unity as an uncompressed Wave or Aiff file. Then set the Audio Format to Compressed and let Unity do the compression. You can set the bitrate for the resulting MP3 file using the slider at the bottom of the Audio Importer.

I believe if you import an MP3, Unity will try to re-compress it if the target platform is a mobile, which could cause problems with the audio.

-Joel.