Skip to content

Commit

Permalink
调大mp3编码编码buffer,速度更快一点
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 8, 2019
1 parent 70fd750 commit 8e553e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/engine/mp3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion recorder.mp3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/engine/mp3.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Recorder.prototype.mp3=function(res,True,False){
//https://github.com/zhuker/lamejs bug:采样率必须和源一致,不然8k时没有声音,有问题fix:https://github.com/zhuker/lamejs/pull/11
var mp3=new Recorder.lamejs.Mp3Encoder(1,set.sampleRate,set.bitRate);

var blockSize=5760;
var blockSize=57600;
var data=[];

var idx=0;
Expand Down

0 comments on commit 8e553e0

Please sign in to comment.