ringtailsoftware / zig-wasm-audio-framebuffer Goto Github PK
View Code? Open in Web Editor NEWExamples of integrating Zig and Wasm for audio and graphics on the web
License: Other
Examples of integrating Zig and Wasm for audio and graphics on the web
License: Other
Only just hacked together an update of this to 0.11-dev latest, so its NOT a bug report so much as a set of initial findings
Got a weekend coming up to have a play with this and attempt to resolve
tiny changes here to force it to compile with the latest and greatest improvements to std.build:
zigster64@21da8a7
Im seeing a decent set of WASM artefacts in zig-out, so looks like its building something sensible
When I run them in the browser, there is a variety of errors though, will sort through them one at a time and try to fix
Chrome on M1 / Ventura :
wasmpcm.js:44 Uncaught TypeError: globalInstance.exports.getLeftBufPtr is not a function
at pcmProcess (wasmpcm.js:44:47)
at update (wasmpcm.js:174:13)
Safari on M1 / Ventura :
TypeError: globalInstance.exports.getLeftBufPtr is not a function. (In 'globalInstance.exports.getLeftBufPtr()', 'globalInstance.exports.getLeftBufPtr' is undefined)
Safari / Chrome on i7 Mac / Monterey
Thought this might have a different problem, because it shouldn't have audio (??? haven't really checked though ???)
Same issues as above
Anyway, stuff for the weekend to play with and I will see where my setup is going wrong.
Awesome collection of code - thanks so much for posting this !
Alt-Left
brings me back into the previous page. Any ideas on how to use different key for that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.