Initial commit

(cherry picked from commit a05807667f)
This commit is contained in:
2022-12-22 16:27:24 +01:00
parent 7d9cdbd44e
commit 61a4d5bdc2
4 changed files with 273 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package nl.astraeus
import kotlinx.browser.document
import nl.astraeus.handler.AudioWorkletHandler
fun main() {
AudioWorkletHandler.loadCode()
println("Ok")
document.getElementById("clicker")?.also {
it.addEventListener("click", {
AudioWorkletHandler.createContext {
println("Created context")
AudioWorkletHandler.start()
}
}, "")
}
}