Add channel selection

This commit is contained in:
2024-06-26 14:10:03 +02:00
parent 2bcd1e0b71
commit f7e088bb67
6 changed files with 53 additions and 29 deletions

View File

@@ -54,6 +54,9 @@ abstract class AudioNode(
abstract fun onMessage(message: MessageEvent)
open fun postMessage(msg: Any) {
if (port == null) {
console.log("postMessage port is NULL!")
}
port?.postMessage(msg)
}