为了文静,努力工作!!帮你UP!!祝楼主幸福!!

解决方案 »

  1.   

    谢谢大家帮忙顶。问题找到,主要是对mp3文件支持不好。找到一个英文的回复:Hi,
    I have been evaluating the JMF and i found some restrictions...
    the way the player is working is a little bit confuse, because the player assign (or try to assign) the best code sequence it can, so when using a processor instead, at least you get the control, but still you have restrictions,
    1. remember that the mp3 capability has been taken out due to licences problems, so you cannot use the JMF with mp3 (mpgeg layer 3).
    2. a wav file means just that it is in wav format, but says nothing about the content, on the specifications "supported Media Formats and Capture Devices" is written that it can handle a .wav file with the specifications: 8bit mono/stero or 16 bit mono/stereo or G711 ulaw, a law or GSM mono or DVI ADPCM or MS ADPCM, but also, at the begining of that document is written that JMF supports audio sample rates from 8Khz to 48Khz (the cross version is even more restricted 8, 11.025, 11.127, 16, 22.254, 32, 44.1 and 48khz)
    RECOMENDATION: i guess the best is to check your file homer.wav to see if the rate is well detected, if it is 11025.0Hz, it will not be played (bit rate restriction).
    Somehow for you .au file the answer will be similar, i have been looking for a complete specification of what EXACTLY the JMF can handle, but i havent found any clear spec (if you or someone pls post it here around).
    BUT. the JMF has been designed to give one the capability to rewrite plugins and codecs, so, as the point of view of the java people, you still have the tools to work around, but who has the time!!!, then, useless...ill appreciate if {you|someone} can post a description of the actual codec/decodec, packetizer/depacketizer restrictionsregards,jahm