Skip to content

Commit

Permalink
修复发现的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 10, 2019
1 parent ed424f6 commit b1e7b73
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2019 xiangyuecn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion dist/recorder-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/recorder-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ Recorder.prototype=initFn.prototype={
,start:function(){
var This=this,ctx=Recorder.Ctx;
var buffer=This.buffer=[];//数据缓冲
This.srcSampleRate=ctx.sampleRate;
This.isMock=0;
This.recSize=0;//数据大小
This._stop();

Expand All @@ -133,6 +131,8 @@ Recorder.prototype=initFn.prototype={
return;
};
console.log("["+Date.now()+"]Start");
This.srcSampleRate=ctx.sampleRate;
This.isMock=0;

if(ctx.state=="suspended"){
ctx.resume().then(function(){
Expand Down

0 comments on commit b1e7b73

Please sign in to comment.