Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

fixes compilation issues and supports larger samples #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kobigurk
Copy link

  • compiles with ALLOW_MEMORY_GROWTH
  • exports functions
  • compiles with ASM_JS
  • removes SSE support from LAME to allow compilation
  • BUFSIZE is adjusted according to the size of the input channel, thus supports larger buffers

* the export part is now required with recent versions of emscripten.
* the SSE instructions used by LAME are not supported by emscripten, causing the compilation to fail.
* allow memory growth to support larger buffers
* support asm.js
@jasonm
Copy link

jasonm commented Dec 29, 2015

Just a note on context since we reference this from minervaproject/user-media-recorder#3 😃

We see issues with the libmp3lame.js from the master branch here (sha 8645d01) on Chrome 47 (current stable channel release) and Firefox 43 (current release) that are fixed by this PR. The issue is the process continually occupying 100+% CPU that can be traced to a webworker compressing 1 minute audio clips with libmp3lame.js. The issue is fixed by replacing with the build provided by @kobigurk here.

FWIW we see normal/expected CPU usage with the master version here in Chrome 48 (current beta channel) slated to release Jan 25, 2016 and Chrome 49 canary, so this issue will likely pass with time for most users.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants