且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MediaElementSource 使用的内存是否比 Web Audio API 中的 BufferSource 少?

更新时间:2023-01-27 08:43:00

我想您已经在任务管理器中找到了答案.

I think you've found the answer in the task manager.

您需要注意几件事.

  • 使用媒体元素,您将失去样本精确控制;这对你来说可能不重要
  • 使用 MediaElementAudioSourceNode 时需要适当的访问权限;如果您的所有资产都在同一台服务器上,这可能不是问题
  • With a media element, you lose sample-accurate control; this may not be important to you
  • You need appropriate access permissions when using a MediaElementAudioSourceNode; this may not be a problem if all of your assets are on the same server