AudioWorklet

The AudioWorklet interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing. Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard
suspend fun addModule(moduleURL: String, options: WorkletOptions = definedExternally)

The addModule() method of the adds it to the current Worklet.

suspend fun addModule(moduleURL: URL, options: WorkletOptions = definedExternally)
Link copied to clipboard
fun addModuleAsync(moduleURL: String, options: WorkletOptions = definedExternally): Promise<Void>
fun addModuleAsync(moduleURL: URL, options: WorkletOptions = definedExternally): Promise<Void>