-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer length problem for long recordings. #65
Comments
This part of the code:
Suggests there's a maximum memory limit that can be set by:
But there are problems with the non-min version of the code. Even with the default settings, we get an error
I'm condiering switching to https://github.com/zhuker/lamejs |
https://github.com/zhuker/lamejs didn't like my e.data.buf in the splice command. This project uses lamejs: https://github.com/zzarcon/microm/blob/728ade6789fe110c8419adfc9b1b209f0a261992/lib/converter.js But we may as well convert totally to using microm. |
In recordmp3.js, I need to pass the arrayBuffer to the encoderWorker.
Then use the example encoding code from: |
This seems to suggest there's a memory limit on workers themselves: |
The program now cuts the recordings into manageable chunks before converting to wav (and then converts the wav chunks to mp3). The ID3 tags are also working again now. A branch tried to do the whole conversion to mp3 directly from samples, but ran into problems. |
Related to Audior/Recordmp3js#23 and akrennmair/libmp3lame-js#8
The text was updated successfully, but these errors were encountered: