andreasgal/j2me.js — pull request #537 by yxl (2014-11-04 07:13:03+00:00)
Title: Support audio playing

A few natives were implemented to support playing wav and amr format audio file streams.

I'm not sure how to write unit tests for audio playing and added a sample midlet from nokia document to test manually.

The amr audio format is not natively supported by browser. I had to include an amr codec (http://jpemartins.github.com/amr.js/) temporarily. One issue is that the codec doesn't provide any license file. I added a REAME.md file to explain the code source, but don't know if it is enough to address the issue.

The codec is ported from opencore-amr under apache license with emscripten tool. I'm going to port one to fully resolve the license issue in the future...

Finally, it fixes #534.