Generate sound

This commit is contained in:
2022-12-22 20:10:43 +01:00
parent 5422e41017
commit 57d6a86fea
8 changed files with 249 additions and 55 deletions

View File

@@ -1,21 +0,0 @@
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()
}
}, "")
}
}