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

Don't read an InputStream twice.