The media player can play 16-bit WAVE files, but only if the format type is PCM and not the extended format type. I've been meaning to fix the OpenCore WAVE parser to handle extended format, but it's not a high priority right now.
On Feb 16, 6:39 pm, herain <[email protected]> wrote: > I tried to play a piec of 16-bit .wav audio file, no sound came out > from my earphone, but .mp3 file would be OK. Do any one else have this > kind of experience? > > This is the code: > > player = MediaPlayer.create(this, R.raw.test); // I put test.wav > in /res/raw > player.start(); > > Thanks for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

