JSPM

lamejs-121-bug

1.2.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q59490F
  • License LGPL-3.0

Pure JavaScript MP3 Encoder,Dealing with official 1.2.1 bug issues

Package Exports

  • lamejs-121-bug
  • lamejs-121-bug/src/js/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lamejs-121-bug) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Dealing with official 1.2.1 bug issues

Dealing with official 1.2.1 bug issues. If you want to use version 1.2.1, you can use this package without making any modifications 处理官方1.2.1bug问题 如果要使用1.2.1版本可以使用这个包不用做任何修改

lamejs

Fast mp3 encoder written in JavaScript. On my machine it works 20x faster than realtime (it will encode 132 second long sample in 6.5 seconds) both on node and chrome. lamejs is a rewrite of jump3r-code which is a rewrite of libmp3lame.

“ReferenceError: MPEGMode is not defined”

“ReferenceError: MPEGMode is not defined” MPEGMode is not defined at lame_init_old (Lame.js?dead:135:1) at Lame.lame_init 这个是旧的版本自带的bug 解决办法找到node_modules/lamejs文件夹修改下面的文件 Lame.js:29行 Encoder.js:112 行 PsyModel.js:162行 添加 var MPEGMode = require(‘./MPEGMode.js’);

BitStream.js:33行 Presets.js:18行 添加 var Lame = require(‘./Lame.js’);

QuantizePVT.js:54行 添加var BitStream = require(‘./BitStream.js’);

官方文档

[https://github.com/zhuker/lamejs#readme]](https://github.com/zhuker/lamejs#readme)