haxenme/NME — pull request #18 by djcsdy (2012-09-01 21:24:24+00:00)
Title: Fix broken import of 11kHz and 22kHz MP3

My gapless MP3 import code broke import of 11kHz and 22kHz MP3s :(.

Without these changes, depending on their length 11kHz and 22kHz MP3s will either fail to import altogether, or will appear to import successfully but skip forward randomly on playback. Fortunately, 44kHz MP3s are much more common, but someone is bound to run into this bug fairly quickly.

Sorry about that. I am suitably embarrassed.

The attached commit updates the code in the `mpeg.audio` package to the latest version from my [mpeg.audio.hx](https://github.com/djcsdy/mpeg.audio.hx) library.

This includes some other fixes too but none of those actually manifest as bugs in NME because they only relate to MP3 features that Flash doesn’t support.

There are unit tests in the upstream library covering these changes.

(btw: I am getting quite close to being ready to release mpeg.audio.hx as a separate library, so you will soon be able to pull these classes from haxelib instead of having to maintain them separately here.)