torch2424 / wasmboy

Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
https://wasmboy.app/
GNU General Public License v3.0
1.39k stars 65 forks source link

No Audio output on Linux (pulseaudio) #330

Open sunnystormy opened 4 years ago

sunnystormy commented 4 years ago

Hello! I love the project, and followed the tutorial posted on Medium "Building WASI Applications with Wasmer I/O devices". However, when I try out various ROMs with the wasmboy emulator, no sound is output. On the other hand, graphics seem to be working just fine!

Let me know if there's anything I can do on my end to fix this, otherwise I will wait for your response. Thank you!

torch2424 commented 4 years ago

@sunnystormy Hello! Thanks for all the kind words about WasmBoy, and thanks for opening this issue! :smile: :tada:

So unfortunately, audio is (maybe it is now? I don't think it is though) not supported by Wasmer I/O Devices. And the WasmBoy demo only supports graphics and input for now.

If Wasmer I/O Devices does support audio, can you send me the docs for it? And I can look into how WasmBoy could support it (hopefully, just copy the audio buffer to the Wasmer Audio buffer :smile: )

Thanks!