You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_mp3_decode();sampleCount=context[5];offset+=context[6];if(!sampleCount){if(!context[6]){break;//No more mp3 data to decode | 没有更多解码的数据了}continue;//Need more mp3 data to decode | 需要更多mp3数据才能解码}
Today, I tested several js versions of MP3 decoding libraries. This code can run through and is very efficient. However, the test found that some mp3s could not be decoded (independent of the channelCount and sampleRate). After studying the code, I found that there seemed to be a problem in this area. It was too early to exit, so I modified it. All mp3 passed the test. The test coverage range: sampleRate 16-48khz, channelCount 1-2.
Look here | 这里:
mp3worker/mp3worker.js
Lines 1943 to 1948 in 02214b1
Modify to | 修改成:
Today, I tested several js versions of MP3 decoding libraries. This code can run through and is very efficient. However, the test found that some mp3s could not be decoded (independent of the channelCount and sampleRate). After studying the code, I found that there seemed to be a problem in this area. It was too early to exit, so I modified it. All mp3 passed the test. The test coverage range: sampleRate 16-48khz, channelCount 1-2.
今天测试了几个js版的mp3解码库,这个代码能跑通,并且效率很高,但测试发现部分mp3无法解码(和采样率声道数无关),研究了一下代码,发现这个地方似乎有点问题,退出的太早了,所以修改了一下,所有mp3都通过了测试,测试覆盖范围:采样率16-48khz,声道数1-2。
The text was updated successfully, but these errors were encountered: