Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeQueue + WASM example #255

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Next Next commit
WebAssembly Example
  • Loading branch information
DivyamAhuja committed Sep 4, 2022
commit d20a9e8148f7f40c7a8d6d7ab5fbf935ea9aeaaf
2 changes: 2 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = function(eleventyConfig) {
'src/audio-worklet/**/*.html',
'src/audio-worklet/**/*.js',
'src/audio-worklet/**/*.mjs',
'src/audio-worklet/**/*.data',
'src/audio-worklet/**/*.wasm',
'src/demos/**/*.css',
'src/demos/**/*.gif',
'src/demos/**/*.html',
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
DivyamAhuja marked this conversation as resolved.
Show resolved Hide resolved
DivyamAhuja marked this conversation as resolved.
Show resolved Hide resolved
"C_Cpp.errorSquiggles": "Disabled"
}
2 changes: 1 addition & 1 deletion src/_data/build_info.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"3.0.2","revision":"2838fd6","lastUpdated":"2022-08-30","copyrightYear":2022}
{"version":"3.0.2","revision":"3eb4553","lastUpdated":"2022-08-20","copyrightYear":2022}
11 changes: 11 additions & 0 deletions src/audio-worklet/free-queue/examples/hello-webassembly/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mkdir "build"
emcc example.c ^
-sENVIRONMENT=worker ^
-sMODULARIZE=1 ^
-sEXPORT_NAME=ExampleModule ^
-sEXPORT_ES6=1 ^
-sINVOKE_RUN=1 ^
-pthread ^
-sEXPORTED_RUNTIME_METHODS="['callMain','ccall', 'cwrap']" ^
-o build/example.js ^
--preload-file moonlight.mp3
11 changes: 11 additions & 0 deletions src/audio-worklet/free-queue/examples/hello-webassembly/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mkdir -p "build"
DivyamAhuja marked this conversation as resolved.
Show resolved Hide resolved
emcc example.c \
-sENVIRONMENT=worker \
-sMODULARIZE=1 \
-sEXPORT_NAME=ExampleModule \
-sEXPORT_ES6=1 \
-sINVOKE_RUN=1 \
-pthread \
-sEXPORTED_RUNTIME_METHODS="['callMain','ccall', 'cwrap']" \
-o build/example.js \
--preload-file moonlight.mp3
Binary file not shown.
Loading