I am converting a PCM encoded wav file to amr file in Android using AmrInputStream. I used the code from below post:
converting PCM-16 to AMR using AmrInputStream
Everything works fine, and the amr file is also generated. However, when I tried to play it with MeidaPlayer, it thrown following exception:
java.io.IOException: Prepare failed.: status=0xFFFFFFFC
at android.media.MediaPlayer.prepare(Native Method)
I noticed that in the above post, it mentioned: "requiring adding the #AMR!\n tag to the output file for playing.". but I don't know how to do it exactly. Please help!