{"id":16733203,"url":"https://github.com/krasjet/webaudio-c","last_synced_at":"2026-05-17T21:03:11.513Z","repository":{"id":98566634,"uuid":"418201700","full_name":"Krasjet/webaudio-c","owner":"Krasjet","description":"the simplest example working with webaudio in c","archived":false,"fork":false,"pushed_at":"2021-10-17T17:37:49.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T09:14:43.215Z","etag":null,"topics":["audio","c","wasm","webaudio"],"latest_commit_sha":null,"homepage":"https://krasjet.github.io/webaudio-c/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Krasjet.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-17T17:13:18.000Z","updated_at":"2022-09-20T21:49:44.000Z","dependencies_parsed_at":"2023-05-29T14:15:15.338Z","dependency_job_id":null,"html_url":"https://github.com/Krasjet/webaudio-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krasjet%2Fwebaudio-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krasjet%2Fwebaudio-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krasjet%2Fwebaudio-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krasjet%2Fwebaudio-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krasjet","download_url":"https://codeload.github.com/Krasjet/webaudio-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243785087,"owners_count":20347409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","c","wasm","webaudio"],"created_at":"2024-10-12T23:49:01.081Z","updated_at":"2026-05-17T21:03:06.464Z","avatar_url":"https://github.com/Krasjet.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"webaudio-c\n==========\n\nA simple WebAudio sine oscillator using WASM compiled from C.\n\nProbably the simplest example for using WASM in WebAudio. No\nC++, no Rust, no Emscripten wrapper, just plain C and some\nJavaScript. Works on the latest version of both Firefox and\nChrome.\n\nBuild\n-----\n\nYou must have Emscripten [1] installed to build the example.\nYou technically only need Clang and WASI [2], but emcc will\nmake your life much easier.\n\nIf you are using ArchLinux or macOS, there are binary\npackages available:\n\n  ArchLinux:\n\n    $ pacman -S emscripten\n\n  macOS:\n\n    $ brew install emscripten\n\nOtherwise follow the documentation to install it [3].\n\nThen run\n\n  $ make\n\nto build the WASM module.\n\nTest\n----\n\nTo test the webpage locally, you *must* set up a local\nserver in the current directory to get over the cross-origin\nresource sharing restriction [4] imposed by modern browsers.\n\nTo do this, you can use the built-in HTTP server in Python:\n\n  $ python3 -m http.server 8000\n\nThis creates a local HTTP server on port 8000. Then go to\nthe URL\n\n  http://localhost:8000\n\nin the browser.\n\n[1]: https://emscripten.org/\n[2]: https://wasi.dev/\n[3]: https://emscripten.org/docs/getting_started/downloads.html\n[4]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasjet%2Fwebaudio-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrasjet%2Fwebaudio-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrasjet%2Fwebaudio-c/lists"}