konsumer / web-zen-dev

Easily make games in WASI that use 2D graphics, sound, and input
http://konsumer.js.org/web-zen-dev/
2 stars 0 forks source link

ioctl #1

Open konsumer opened 3 weeks ago

konsumer commented 3 weeks ago

This started as a discussion over at #124.

Users will need some way to control the settings for framebuffer/sound (resolution, etc.) For null0, I don't want them to have control of these things (fixed sound output, and window-size) so I recommend a permission-denied style error, if a config-flag is set to not allow making changes. I think some options should still be ignored, like color-depth (since this will greatly complicate the rendering.)

Some reference:

I think my cmem_helpers might be very helpful for managing the structs that are passed back & forth.