Offline / Non-Realtime Rendering with the Web Audio API

前端 未结 1 1823
星月不相逢
星月不相逢 2021-01-02 14:17

The Problem

I\'m working on a web application where users can sequence audio samples and optionally apply effects to the musical patterns they create using the Web

1条回答
  •  被撕碎了的回忆
    2021-01-02 14:24

    I did some research on this a few months back, and there is a startRendering function on the audioContext, but I was told by Google people that the implementation was, at that time, due to change. I don't think this has happened yet, and it's still not a part of the official documentation, so I'd be careful building an app that depends on it.

    The current implementation doesn't render any faster than realtime either (maybe slightly in very light applications), and sometimes even slower than realtime.

    Your best bet is hitting the trenches and implement Web Audio server-side if you need non-realtime rendering. If you could live with realtime rendering there's a project at https://github.com/mattdiamond/Recorderjs which might be of interest.

    Please note that I'm not a googler myself, and what I was told was not a promise in any way.

    0 讨论(0)
提交回复
热议问题