Skip to content

Commit

Permalink
AudioBufferSourceNode低版本用noteOn代替start
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 15, 2020
1 parent 27f7157 commit fbefe77
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
10 changes: 8 additions & 2 deletions assets/npm-home/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,19 @@ npm install recorder-core


## WaveView的调用方式
直接通过Recorder.WaveView调用即可,录音时动态显示波形,详细的使用请参考[GitHub仓库](https://github.com/xiangyuecn/Recorder)里面的README
直接通过Recorder.WaveView调用即可,录音时动态显示波形,详细的使用请参考下面详细的README。

@@Ref README.WaveView.Codes@@


## FrequencyHistogramView的调用方式
直接通过Recorder.FrequencyHistogramView调用即可,音频可视化频率直方图显示,详细的使用请参考下面详细的README。

![](https://gitee.com/xiangyuecn/Recorder/raw/master/assets/use_histogram.png)


## Sonic的调用方式
直接通过Recorder.Sonic调用即可,音频变速变调转换,详细的使用请参考[GitHub仓库](https://github.com/xiangyuecn/Recorder)里面的README
直接通过Recorder.Sonic调用即可,音频变速变调转换,详细的使用请参考下面详细的README。


## RecordApp的调用方式
Expand Down
8 changes: 4 additions & 4 deletions assets/npm-home/hash-history.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"sha1": "faa51e270e00316a1f7c005e526dde26b7ceaef1",
"time": "2020-1-15 18:02:58"
},
{
"sha1": "2c9728442cfe5e6ba97e73fff21dee502e24f9e5",
"time": "2020-1-14 18:20:47"
Expand All @@ -14,9 +18,5 @@
{
"sha1": "c4a7d796fe658b33a012e69650d5663f1b6c7471",
"time": "2020-1-14 03:03:00"
},
{
"sha1": "49a3e316c57542696a81f0d413ffe9c9ea08053a",
"time": "2020-1-10 17:05:41"
}
]
2 changes: 1 addition & 1 deletion assets/runtime-codes/fragment.playbuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ window.DemoFragment||(window.DemoFragment={})
source.channelCount=1;
source.buffer=audio;
source.connect(ctx.destination);
source.start();
if(source.start){source.start()}else{source.noteOn(0)};

size=0;
arr=[];
Expand Down
2 changes: 1 addition & 1 deletion assets/zdemo.index.webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ var rtcDecodePlay=function(decode){
source.channelCount=1;
source.buffer=buffer;
source.connect(ctx.destination);
source.start();
if(source.start){source.start()}else{source.noteOn(0)};

//不关闭上一个,让它继续播放完结尾,衔接起来好些
//rtcDecPlaySource&&rtcDecPlaySource.stop();
Expand Down
2 changes: 1 addition & 1 deletion dist/engine/beta-webm.js

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

2 changes: 1 addition & 1 deletion src/engine/beta-webm.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Recorder.prototype.webm=function(res,True,False){
source.channelCount=1;
source.buffer=buffer;
source.connect(dest);
source.start();
if(source.start){source.start()}else{source.noteOn(0)};
source.onended=function(){
recorder.stop();
};
Expand Down

0 comments on commit fbefe77

Please sign in to comment.