web-audio-javascript-webassembly-SDK-interactive-audio icon indicating copy to clipboard operation
web-audio-javascript-webassembly-SDK-interactive-audio copied to clipboard

TimeStretching advancedProcess implementation example

Open dodds-cc opened this issue 2 years ago • 1 comments

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.

dodds-cc avatar Jul 11 '22 09:07 dodds-cc

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.

gaborszanto avatar Jul 20 '22 14:07 gaborszanto