-
+
@@ -133,7 +133,8 @@
WaveView
SurferView
Histogram1
-
Histogram2
+
H...2
+
H...3
@@ -259,6 +260,16 @@
,minHeight:1
,stripeEnable:false
});
+ waveStore.Histogram3=Recorder.FrequencyHistogramView({
+ elem:".ctrlProcessWave"
+ ,lineCount:10
+ ,position:0
+ ,minHeight:1
+ ,fallDuration:400
+ ,stripeEnable:false
+ ,mirrorEnable:true
+ ,linear:[0,"#0ac",1,"#0ac"]
+ });
};
$(".ctrlProcessX").css("width",powerLevel+"%");
@@ -341,9 +352,14 @@
$(".recwaveChoice").bind("click",function(e){
var elem=$(e.target);
$(".recwaveChoice").removeClass("slc");
- recwaveChoiceKey=elem.addClass("slc").attr("key");
+ var val=elem.addClass("slc").attr("key");
+
+ recwaveChoiceKey=val;
localStorage["RecWaveChoiceKey"]=recwaveChoiceKey;
});
+if(!$(".recwaveChoice[key="+recwaveChoiceKey+"]").length){
+ recwaveChoiceKey="WaveView";
+};
$(".recwaveChoice[key="+recwaveChoiceKey+"]").click();
@@ -441,14 +457,14 @@
var name="rec-"+o.duration+"ms-"+(o.set.bitRate||"-")+"kbps-"+(o.set.sampleRate||"-")+"hz."+(o.set.type||(/\w+$/.exec(o.blob.type)||[])[0]||"unknown");
o.down=(o.down||0)+1;
- $(".LogAudio_"+id).html('
'+o.down+' 没弹下载?试一下链接或复制文本');
+ $(".LogAudio_"+id).html('
'+o.down+' 点击
下载,或复制文本');
var downA=document.createElement("A");
downA.innerHTML="下载 "+name;
downA.href=(window.URL||webkitURL).createObjectURL(o.blob);
downA.download=name;
$("."+cls).prepend(downA);
- downA.click();
+ //downA.click(); 某些软件内会跳转页面到恶心推广页
};
};
Runtime.LogAudioDown64=function(key, cls){
diff --git a/dist/extensions/frequency.histogram.view.js b/dist/extensions/frequency.histogram.view.js
index fc85700..770f05a 100644
--- a/dist/extensions/frequency.histogram.view.js
+++ b/dist/extensions/frequency.histogram.view.js
@@ -3,4 +3,4 @@
https://github.com/xiangyuecn/Recorder
src: extensions/frequency.histogram.view.js
*/
-!function(){"use strict";var t=function(t){return new e(t)},e=function(t){var e=this,r={scale:2,fps:20,lineCount:30,widthRatio:.6,spaceWidth:0,minHeight:0,position:-1,stripeEnable:!0,stripeHeight:3,stripeMargin:6,fallDuration:1e3,stripeFallDuration:3500,linear:[0,"rgba(0,187,17,1)",.5,"rgba(255,215,0,1)",1,"rgba(255,102,0,1)"],stripeLinear:null,shadowBlur:0,shadowColor:"#bbb",stripeShadowBlur:-1,stripeShadowColor:"",onDraw:function(t,e){}};for(var a in t)r[a]=t[a];e.set=t=r;var i=t.elem;i&&("string"==typeof i?i=document.querySelector(i):i.length&&(i=i[0])),i&&(t.width=i.offsetWidth,t.height=i.offsetHeight);var o=t.scale,n=t.width*o,l=t.height*o,h=e.elem=document.createElement("div"),s=["","transform-origin:0 0;","transform:scale("+1/o+");"];h.innerHTML='
';var f=e.canvas=h.querySelector("canvas");e.ctx=f.getContext("2d");if(f.width=n,f.height=l,i&&(i.innerHTML="",i.appendChild(h)),!Recorder.LibFFT)throw new Error("需要lib.fft.js支持");e.fft=Recorder.LibFFT(1024),e.lastH=[],e.stripesH=[]};e.prototype=t.prototype={genLinear:function(t,e,r,a){for(var i=t.createLinearGradient(0,r,0,a),o=0;o
1.3*e.stripeFallDuration)return clearInterval(t.timer),void(t.timer=0);if(!(a-i';var f=e.canvas=h.querySelector("canvas");e.ctx=f.getContext("2d");if(f.width=l,f.height=n,i&&(i.innerHTML="",i.appendChild(h)),!Recorder.LibFFT)throw new Error("需要lib.fft.js支持");e.fft=Recorder.LibFFT(1024),e.lastH=[],e.stripesH=[]};e.prototype=t.prototype={genLinear:function(t,e,r,a){for(var i=t.createLinearGradient(0,r,0,a),o=0;o