Unable to transcode song.mp3
Unsupported sampling rate (0Hz)
[Embed(source='assets/MuffinManSwing.mp3')] private var snd_class:Class;
The mp3 is in an unsupported format and the Flex compiler does not have the ability to encode it into one. Note: The Flash IDE compiler can import and convert an mp3 into a supported format.
“Flash can import either 8- or 16-bit sounds at sample rates of 11, 22, or 44 kHz. Sounds recorded in formats that are not multiples of 11 kHz (such as 8, 32, or 96 kHz) are resampled when imported into Flash. Flash can convert sounds to lower sample rates on export.”
Flash SWF files only allow four sample rates for embedded mp3’s:
44100 Hz (preferred setting)
Convert the MP3 to a supported sample rate.
Draft: Possible solution is to set the embed mime type to octet stream like so:
[Embed(source='assets/MuffinManSwing.mp3',mimeType="application/octet-stream")] private var snd_class:Class; private var snd:Sound = new snd_class() as Sound;