Thank you for your reply. My wav file was built by cool edit which saved a pcm file as windows PCM format. I guess it doesn't contain any extended format type as your mentioned.
On Feb 17, 10:57 am, Dave Sparks <davidspa...@android.com> wrote: > 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 <herainw...@gmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---