Coder Social home page Coder Social logo

ringtailsoftware / zig-wasm-audio-framebuffer Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 1.0 18.84 MB

Examples of integrating Zig and Wasm for audio and graphics on the web

License: Other

Zig 17.79% JavaScript 1.78% HTML 0.75% C 33.89% C++ 45.41% Makefile 0.13% Dockerfile 0.01% Shell 0.01% CSS 0.07% TeX 0.15%
wasm webassembly webaudio zig

zig-wasm-audio-framebuffer's People

Contributors

ringtailsoftware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zigster64

zig-wasm-audio-framebuffer's Issues

INFO: Number of issues building with 0.11.0-dev.1894+6ab04b594 on apple silicon

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

sinetone

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

  • no errors in console, but the start button does not appear, just a greyed out 'loading' button

Other sound demos - same same

Mandelbrot

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 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.