Microchip
直播中

李丽

8年用户 304经验值
私信 关注
[问答]

MP3和AAC库不起作用

不确定是否有其他人使用了这些二进制LIB,但它们似乎没有准备好黄金时段。我买了两个都期待一个简单的现成的安装,但它不是这样的。(1)安装程序不与2.04.2的MP3 LIB:2手动添加LIBS和让它去也不起作用。我使用的是PIC32 MZ2064 DAH176,它有一个没有FPU的微APtiV核心,并且我怀疑这两种构建都没有正确地发挥作用。第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.

回帖(17)

李兆峰

2019-1-14 10:00:31
我正在尝试MP3的东西,因为我ththHTTP://www. McCHIP.COM/FUMMS/FUNDSPE/1014506不确定它会走多远…

以上来自于百度翻译


      以下为原文

    I am trying MP3 stuff too, as per my thread
http://www.microchip.com/forums/FindPost/1014506
 
Not sure how far it will go...
举报

李涛

2019-1-14 10:14:19
你在易趣网上购买的Wave/mp3有很多芯片/模块,MPU的作用非常小,为MP3节省了大量的代码。

以上来自于百度翻译


      以下为原文

    There are chips/modules you buy on ebay that do wav/mp3.
The mpu has do to very little.
 
Saves a hell of a lot of coding for mp3.
举报

李兆峰

2019-1-14 10:29:13
你失去了乐趣,但我明白…

以上来自于百度翻译


      以下为原文

    You lose the fun but I understand...
举报

李涛

2019-1-14 10:39:59
解码MP3并不好玩。

以上来自于百度翻译


      以下为原文

    Not fun decoding mp3.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分