If you replace the test.wav file with a test.mp3 file, does it play OK? If it does, then it has to be something about the WAVE file that OpenCore doesn't like. Have you looked in the log?
On Feb 16, 7:25 pm, herain <[email protected]> wrote: > 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 <[email protected]> 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 <[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 -~----------~----~----~----~------~----~------~--~---

