Don't read an InputStream twice and fix TestAudioPlayer
Merge pull request #740 from yxl/TestAudioPlayer.read

Don't read an InputStream twice.
Merge branch 'master' of https://github.com/andreasgal/j2me.js into text_editor_emoticons

Conflicts:
	tests/automation.js