title: Embedded Sounds cut off early
body: <p>I have a combined Flash Builder/Flash Pro project. Because of the hassles involving in maintaining sound assets on the timeline, my sounds are all embedded into Class files, like:</p>
  
  <pre><code>[Embed (source="/mp3/Welcome_01_V.mp3", mimeType="audio/mpeg")]
  private static const WELCOME_1:Class;
  </code></pre>
  
  <p>These files are then referenced by the base Classes for the symbols that need them, embedded for Actionscript on Frame 10 (because the second frame label is on Frame 10 to give space for you to read the first one).</p>
  
  <p>What I'm finding is that a few of these Sounds don't play all the way through, but the SoundChannel dispatches the "soundComplete" event, and its final position matches the Sound's length.</p>
  
  <p>All sounds are converted from wav to mp3 at 44Hz / 16 kbps. I faked out the compiler to avoid a reference to Flex by including a dummy SoundAsset that extends Sound.</p>
  
  <p>I don't know what other steps to take to debug this. Is there a way to figure out whether the problem is on the compile side or on the run side?</p>
  
  <h1>Updated</h1>
  
  <p>More things I have tried:</p>
  
  <ul>
  <li>Looked at the Size report: The nonworking sounds were smaller in
  their embedded form than the source mp3</li>
  <li>Got rid of my own BitmapAsset and let Flash link in the Flex Framework and do whatever that does (definitely worse)</li>
  <li>Dropped the encoding from 44 kHz to 22 kHz (no improvement or worse)</li>
  <li>Dropped the bit rate to 8kbps (the lowest dbPowerAmp, the tool I use, supports). This usually helps somewhat, but I still usually use a word or two from the end of the file</li>
  <li>Dropped both parameters in the encoding. This helped a few that just dropping the bit rate didn't, but not all files. Plus it sounds tinny.</li>
  </ul>
  
  <p>Thanks!</p>