【发布时间】:2013-03-27 01:21:16
【问题描述】:
我正在尝试使用网络音频 api 'noteOn(time)' 播放声音,但我不确定时间单位是什么。
是毫秒吗?还是第二个?
【问题讨论】:
标签: web-audio-api
我正在尝试使用网络音频 api 'noteOn(time)' 播放声音,但我不确定时间单位是什么。
是毫秒吗?还是第二个?
【问题讨论】:
标签: web-audio-api
几秒钟。
时间与音频上下文的 currentTime 相关,可以这样访问:
var context = new audioContext();
//....
note.noteOn(context.currentTime); //will play now
//....
note.noteOn(context.currentTime + 1); //will play in one second
【讨论】: