Web音频API Firefox setValueCurveAtTime() [英] Web Audio API Firefox setValueCurveAtTime()

查看:105
本文介绍了Web音频API Firefox setValueCurveAtTime()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在交叉播放一些音频,并且在表格中存储了相同的功率曲线。我正在调用这个函数来开始淡出。 fade参数是使用createGain()创建的GainNode()b
$ 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆