web-audio-javascript-webassembly-SDK-interactive-audio
web-audio-javascript-webassembly-SDK-interactive-audio copied to clipboard
TimeStretching advancedProcess implementation example
Although implementation examples for the TimeStretching class are provided for usage with the addInput
and getOutput
methods, examples of the optimised usage with the advancedProcess
method are not provided.
It would be great to see an example of the alternative use of The TImeStretching class with usage of advancedProcess
, outputList
and the associated logic with AudiopointerlistElement
and AudiopointerList
.
advancedProcess is not available for the web, because its inputs are memory-pool managed buffers.
In native code, the AudiobufferPool class manages a global audio buffer pool, reducing the number of memory allocation requests and provides a way for real-time threads allocating memory without blocking.
Thread scheduling on the web doesn't allow such mechanisms, therefore advancedProcess is not available.