Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
{
"C_Cpp.errorSquiggles": "Disabled"
}
5 changes: 5 additions & 0 deletions src/_data/audioworklet_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
This example demonstrates how this library can be used as a channel
between a worker thread and AudioWorklet to send audio data.
href: free-queue/examples/simple-passthrough/
- title: Hello WebAssembly
description: Example of using FreeQueue with WebAssembly.
This example uses a mp3 decoding library to play load and play song
from WebAssembly.
href: free-queue/examples/hello-webassembly/

- title: Migration from ScriptProcessorNode
entries:
Expand Down
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":"d20a9e8","lastUpdated":"2022-09-04","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"
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