remove back-channel from audio thread for now

It needs some more thought before committing to it.
This commit is contained in:
2022-04-24 15:52:19 +02:00
parent 491bf88ade
commit 2bf8938183
5 changed files with 9 additions and 35 deletions

View File

@@ -211,13 +211,7 @@ export default function MicroW8(screen, config = {}) {
let platform_data = await loadModuleURL(platformUrl);
audioNode.port.onmessage = (e) => {
if(isNaN(e.data)) {
U8(memory.buffer, 0x12c80, 32).set(U8(e.data));
} else {
updateAudioReady(e.data);
}
};
audioNode.port.onmessage = (e) => updateAudioReady(e.data);
audioNode.port.postMessage([platform_data, data]);
let platform_instance = await instantiate(platform_data);