This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // assuming you have an AudioBuffer instance called `buffer`, | |
| // and an AudioContext (or OfflineAudioContext) called `ctx`... | |
| // create a new Worker... | |
| var worker = new Worker('recorderWorker.js'); | |
| // get it started and send some config data... | |
| worker.postMessage({ | |
| command: 'init', |