Web音频API Firefox setValueCurveAtTime() [英] Web Audio API Firefox setValueCurveAtTime()
问题描述
$ b
fade.gain.setValueCurveAtTime(epCurveOut,context.currentTime,fadeTime);
在Chrome和Safari中一切顺利,但Firefox(v30)抱怨:
SyntaxError:指定了无效或非法的字符串
而不是context.currentTime我试过0和0.01。这个方法可能没有实现吗?如果是这样的话,我该如何安排一个随着时间的推移余弦相等的功率上升? 解决方案
这似乎是一个错误, ,我提交了 https://bugzilla.mozilla.org/show_bug.cgi?id=1069825 来跟踪这个。
I am crossfading some audio and I have a equal power curve stored in a table. I'm calling this function to start the fadeout. The fade parameter is a GainNode made with createGain()
fade.gain.setValueCurveAtTime(epCurveOut, context.currentTime, fadeTime);
In Chrome and Safari all goes well, but Firefox (v30) complains:
SyntaxError: An invalid or illegal string was specified
Instead of context.currentTime I've tried 0 and 0.01. Is this method not implemented maybe? If so how would I alternatively schedule a cosine equal power ramp over time?
This seems to be a bug on our end indeed, I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1069825 to track this.
这篇关于Web音频API Firefox setValueCurveAtTime()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!