不确定是否有其他人使用了这些二进制LIB,但它们似乎没有准备好黄金时段。我买了两个都期待一个简单的现成的安装,但它不是这样的。(1)安装程序不与2.04.2的MP3 LIB:2手动添加LIBS和让它去也不起作用。我使用的是PIC32 MZ2064 DAH176,它有一个没有FPU的微AP
tiV核心,并且我怀疑这两种构建都没有正确地发挥作用。第3,微标签头与库定义不匹配,特别是Frp3GETStesteSex 4。该库看起来与驱动器中的原始MP3文件格格不入。给它喂食。我必须用勺子喂这个解码器吗?目前,我正在调用ITMP3StaseSeist= MP3DeCuffGestStaseSeIZE();MP3DeCuffStord= MaloC(MP3StaseSeI化);然后输入ITMP3DECODE(MP3DeXDeStRead,Ipple Buffor,InSimultand,Advand;Frand;OuttPuffor,Objsig);并且它大部分时间返回0。这是非常简化的,但是我把缓冲区的未使用部分移回开头,然后在它上面加上更多,等等。基本的LIB基本上没有记录。因此,在这一点上,这些看起来像是一个Wa$TE。
以上来自于百度翻译
以下为原文
Not sure if anyone else has used these binary libs, but they don't seem to be ready for prime time. I bought both expecting a simple ready to go setup, but it isn't to be so.
#1 the installer doesn't mesh with 2.04.
For the MP3 lib:
#2 Manually adding the libs and getting it going doesn't work either. I am using the PIC32MZ2064DAH176 which has a microaptiv core without FPU, and I suspect that neither build plays properly.
#3 The Microaptive header doesn't match the library definitions, particularly for MP3GetStateSize
#4 The library seems geared to a pristine mp3 file from a drive, and I want to stream to it. Do I have to spoon feed this decoder? At present I am calling it
Mp3StateSize = MP3DecoderGetStateSize();
Mp3decoderState = malloc(Mp3StateSize);
Then feeding it
MP3Decode(Mp3decoderState, inputBuffer, inSize, &used, &format, outputBuffer, &outSize));
and it returns 0 most of the time. This is very simplified, but I am moving the unused portion of the buffer back to the start before adding more on top of it, etc. The underlying libs are basically not documented. So at this point these seems like a wa$te.