Unable to Resolve "sound file" for Transcoding


(Noah) #1

I’m trying to use a sound file in a game I am working on but whenever I try to add it I get the following error.


/Users/myname/Documents/My Stuff/Flash Stuff/Games/There is a Monster/Hero.as, Line 14 unable to resolve ‘/…/assets/sound/step.mp3’ for transcoding

Is there any fix for this or is it the file I’m trying to reference. Here is my code for the sound if that is important.

[Embed('assets/sound/step.mp3')] private const STEP:Class;
	
public var step:Sfx = new Sfx(STEP);

Thanks for your help :smile:


(Jacob Albano) #2

Make sure your audio is at 14400Hz. I had this issue once and it was a royal pain to figure out since that message is so unhelpful. You can open them with Audacity or any other audio editor.