From 44830ef5b83fcd92295c73b49695ca9cff4584c7 Mon Sep 17 00:00:00 2001 From: terryzfeng Date: Wed, 19 Jun 2024 01:29:24 +0000 Subject: [PATCH] Update gh-pages to output generated at f98c9d8 --- .../basic/audio-worklet-node-options/index.html | 2 +- audio-worklet/basic/bit-crusher/index.html | 2 +- audio-worklet/basic/handling-errors/index.html | 2 +- audio-worklet/basic/hello-audio-worklet/index.html | 2 +- audio-worklet/basic/message-port/index.html | 2 +- audio-worklet/basic/noise-generator/index.html | 2 +- audio-worklet/basic/one-pole-filter/index.html | 2 +- audio-worklet/basic/volume-meter/index.html | 2 +- .../design-pattern/shared-buffer/index.html | 2 +- .../design-pattern/wasm-ring-buffer/index.html | 2 +- .../design-pattern/wasm-supersaw/index.html | 2 +- audio-worklet/design-pattern/wasm/index.html | 2 +- .../examples/simple-passthrough/index.html | 2 +- audio-worklet/index.html | 2 +- audio-worklet/migration/spn-recorder/index.html | 2 +- audio-worklet/migration/worklet-recorder/index.html | 2 +- demos/mld-drum-sampler/index.html | 2 +- experiments/index.html | 2 +- experiments/webgpuaudio/index.html | 2 +- index.html | 2 +- tests/index.html | 2 +- tests/pannernode/index.html | 2 +- tests/playwright/pages/realtime-sine.html | 13 +++---------- tests/playwright/pages/realtime-sine/index.html | 13 +++---------- tests/playwright/pages/src/dom.js | 10 ---------- tests/playwright/pages/src/download.js | 6 ------ tests/playwright/pages/src/recorder/main.js | 4 ++-- tests/resampler/index.html | 2 +- tests/setsinkid/index.html | 2 +- 29 files changed, 32 insertions(+), 62 deletions(-) delete mode 100644 tests/playwright/pages/src/dom.js delete mode 100644 tests/playwright/pages/src/download.js diff --git a/audio-worklet/basic/audio-worklet-node-options/index.html b/audio-worklet/basic/audio-worklet-node-options/index.html index c75b1d7a8..b02d1420b 100644 --- a/audio-worklet/basic/audio-worklet-node-options/index.html +++ b/audio-worklet/basic/audio-worklet-node-options/index.html @@ -134,7 +134,7 @@

Using Options for AudioWorkletNode

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/bit-crusher/index.html b/audio-worklet/basic/bit-crusher/index.html index 7675fdc59..5850347c9 100644 --- a/audio-worklet/basic/bit-crusher/index.html +++ b/audio-worklet/basic/bit-crusher/index.html @@ -118,7 +118,7 @@

BitCrusher with AudioParam

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/handling-errors/index.html b/audio-worklet/basic/handling-errors/index.html index c42fa51bb..16eaa3945 100644 --- a/audio-worklet/basic/handling-errors/index.html +++ b/audio-worklet/basic/handling-errors/index.html @@ -118,7 +118,7 @@

Handling Errors

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/hello-audio-worklet/index.html b/audio-worklet/basic/hello-audio-worklet/index.html index 019204113..62c39ef29 100644 --- a/audio-worklet/basic/hello-audio-worklet/index.html +++ b/audio-worklet/basic/hello-audio-worklet/index.html @@ -117,7 +117,7 @@

Hello Audio Worklet!

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/message-port/index.html b/audio-worklet/basic/message-port/index.html index 8b3aae944..0ab45c02e 100644 --- a/audio-worklet/basic/message-port/index.html +++ b/audio-worklet/basic/message-port/index.html @@ -117,7 +117,7 @@

MessagePort

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/noise-generator/index.html b/audio-worklet/basic/noise-generator/index.html index 21f42351a..bb88328e2 100644 --- a/audio-worklet/basic/noise-generator/index.html +++ b/audio-worklet/basic/noise-generator/index.html @@ -118,7 +118,7 @@

Noise generator with modulation

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/one-pole-filter/index.html b/audio-worklet/basic/one-pole-filter/index.html index 838459a7e..70169b352 100644 --- a/audio-worklet/basic/one-pole-filter/index.html +++ b/audio-worklet/basic/one-pole-filter/index.html @@ -118,7 +118,7 @@

One Pole Filter

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/basic/volume-meter/index.html b/audio-worklet/basic/volume-meter/index.html index 160524e39..41fbfa058 100644 --- a/audio-worklet/basic/volume-meter/index.html +++ b/audio-worklet/basic/volume-meter/index.html @@ -120,7 +120,7 @@

Volume Meter

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/design-pattern/shared-buffer/index.html b/audio-worklet/design-pattern/shared-buffer/index.html index 9e939df17..59160c0b1 100644 --- a/audio-worklet/design-pattern/shared-buffer/index.html +++ b/audio-worklet/design-pattern/shared-buffer/index.html @@ -122,7 +122,7 @@

AudioWorklet, SharedArrayBuffer, and Worker

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/design-pattern/wasm-ring-buffer/index.html b/audio-worklet/design-pattern/wasm-ring-buffer/index.html index 3a68fa3d4..d3edf3cde 100644 --- a/audio-worklet/design-pattern/wasm-ring-buffer/index.html +++ b/audio-worklet/design-pattern/wasm-ring-buffer/index.html @@ -119,7 +119,7 @@

Ring Buffer in AudioWorkletProcessor

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/design-pattern/wasm-supersaw/index.html b/audio-worklet/design-pattern/wasm-supersaw/index.html index ae13bbed8..f35c2ed17 100644 --- a/audio-worklet/design-pattern/wasm-supersaw/index.html +++ b/audio-worklet/design-pattern/wasm-supersaw/index.html @@ -130,7 +130,7 @@

WebAssembly Supersaw

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/design-pattern/wasm/index.html b/audio-worklet/design-pattern/wasm/index.html index 1b6ff3a35..b0dfbc2b7 100644 --- a/audio-worklet/design-pattern/wasm/index.html +++ b/audio-worklet/design-pattern/wasm/index.html @@ -119,7 +119,7 @@

Audio Worklet and WebAssembly

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/free-queue/examples/simple-passthrough/index.html b/audio-worklet/free-queue/examples/simple-passthrough/index.html index ba0e473b5..99a8d52ae 100644 --- a/audio-worklet/free-queue/examples/simple-passthrough/index.html +++ b/audio-worklet/free-queue/examples/simple-passthrough/index.html @@ -122,7 +122,7 @@

Simple Passthrough Example

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/index.html b/audio-worklet/index.html index c80d73e80..195c37452 100644 --- a/audio-worklet/index.html +++ b/audio-worklet/index.html @@ -270,7 +270,7 @@

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/migration/spn-recorder/index.html b/audio-worklet/migration/spn-recorder/index.html index 31a5fb5c8..31a4f05a6 100644 --- a/audio-worklet/migration/spn-recorder/index.html +++ b/audio-worklet/migration/spn-recorder/index.html @@ -158,7 +158,7 @@

ScriptProcessorNode Audio Recorder

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/audio-worklet/migration/worklet-recorder/index.html b/audio-worklet/migration/worklet-recorder/index.html index 0a6d4be6c..0425693bb 100644 --- a/audio-worklet/migration/worklet-recorder/index.html +++ b/audio-worklet/migration/worklet-recorder/index.html @@ -158,7 +158,7 @@

AudioWorklet Recorder

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/demos/mld-drum-sampler/index.html b/demos/mld-drum-sampler/index.html index efb513cc1..27acd5794 100644 --- a/demos/mld-drum-sampler/index.html +++ b/demos/mld-drum-sampler/index.html @@ -116,7 +116,7 @@

Web Audio API 드럼머신 만들기

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/experiments/index.html b/experiments/index.html index e7e336a61..f0dcc41a7 100644 --- a/experiments/index.html +++ b/experiments/index.html @@ -113,7 +113,7 @@

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/experiments/webgpuaudio/index.html b/experiments/webgpuaudio/index.html index c9b5a6a67..b3468b0ce 100644 --- a/experiments/webgpuaudio/index.html +++ b/experiments/webgpuaudio/index.html @@ -115,7 +115,7 @@

WebGPUAudio Experiment

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/index.html b/index.html index c17d6e889..4c533a9b9 100644 --- a/index.html +++ b/index.html @@ -258,7 +258,7 @@

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/tests/index.html b/tests/index.html index 08f9e9aa5..2236d877e 100644 --- a/tests/index.html +++ b/tests/index.html @@ -121,7 +121,7 @@

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/tests/pannernode/index.html b/tests/pannernode/index.html index 25a83aa4a..45fcf297f 100644 --- a/tests/pannernode/index.html +++ b/tests/pannernode/index.html @@ -131,7 +131,7 @@

Glitches in PannerNode

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/tests/playwright/pages/realtime-sine.html b/tests/playwright/pages/realtime-sine.html index 179de4724..8850d27ae 100644 --- a/tests/playwright/pages/realtime-sine.html +++ b/tests/playwright/pages/realtime-sine.html @@ -7,27 +7,20 @@ // eslint-disable-next-line no-async-promise-executor window.updateFrequencyPromise = new Promise(async (resolve) => { - const ctx = new AudioContext(); + const ctx = new AudioContext({sampleRate: 48000}); const helloSine = new OscillatorNode(ctx); const {recorder, buffer} = await record(ctx, helloSine); helloSine.connect(recorder).connect(ctx.destination); - const start = performance.now(); - helloSine.start(); helloSine.stop(ctx.currentTime + 1); - const latency = await new Promise((resolve) => - helloSine.onended = () => resolve(ctx.baseLatency)); - - const end = performance.now(); - - const blob = audioBufferToWav(await buffer, false); + const recordBuffer = await buffer; await ctx.close(); - resolve({latency, time: end - start, blob}); + resolve({buffer: recordBuffer}); }); diff --git a/tests/playwright/pages/realtime-sine/index.html b/tests/playwright/pages/realtime-sine/index.html index 179de4724..8850d27ae 100644 --- a/tests/playwright/pages/realtime-sine/index.html +++ b/tests/playwright/pages/realtime-sine/index.html @@ -7,27 +7,20 @@ // eslint-disable-next-line no-async-promise-executor window.updateFrequencyPromise = new Promise(async (resolve) => { - const ctx = new AudioContext(); + const ctx = new AudioContext({sampleRate: 48000}); const helloSine = new OscillatorNode(ctx); const {recorder, buffer} = await record(ctx, helloSine); helloSine.connect(recorder).connect(ctx.destination); - const start = performance.now(); - helloSine.start(); helloSine.stop(ctx.currentTime + 1); - const latency = await new Promise((resolve) => - helloSine.onended = () => resolve(ctx.baseLatency)); - - const end = performance.now(); - - const blob = audioBufferToWav(await buffer, false); + const recordBuffer = await buffer; await ctx.close(); - resolve({latency, time: end - start, blob}); + resolve({buffer: recordBuffer}); }); diff --git a/tests/playwright/pages/src/dom.js b/tests/playwright/pages/src/dom.js deleted file mode 100644 index 5814fddea..000000000 --- a/tests/playwright/pages/src/dom.js +++ /dev/null @@ -1,10 +0,0 @@ -export default { - id: { - helloSine: { - btn: document.getElementById('hello-sine:btn'), - res: document.getElementById('hello-sine:res'), - time: document.getElementById('hello-sine:time'), - output: document.getElementById('hello-sine:output'), - }, - }, -}; diff --git a/tests/playwright/pages/src/download.js b/tests/playwright/pages/src/download.js deleted file mode 100644 index c4852b226..000000000 --- a/tests/playwright/pages/src/download.js +++ /dev/null @@ -1,6 +0,0 @@ -export default (blob) => { - const download = document.createElement('a'); - download.href = URL.createObjectURL(blob); - download.download = 'out.wav'; - download.click(); -}; diff --git a/tests/playwright/pages/src/recorder/main.js b/tests/playwright/pages/src/recorder/main.js index a6c6e382b..4c075d5e6 100644 --- a/tests/playwright/pages/src/recorder/main.js +++ b/tests/playwright/pages/src/recorder/main.js @@ -7,7 +7,7 @@ export default async (ctx, scheduleNode) => { const mutex = new Promise((resolve) => scheduleNode.addEventListener('ended', resolve)); - await ctx.audioWorklet.addModule('./scripts/recorder/worker.js'); + await ctx.audioWorklet.addModule('./src/recorder/worker.js'); const recorder = new AudioWorkletNode(ctx, 'recorder'); @@ -31,7 +31,7 @@ export default async (ctx, scheduleNode) => { res.forEach((array, i) => buf.copyToChannel(array, i)); - resolve(buf); + resolve(res[0]); }); return {recorder, buffer}; diff --git a/tests/resampler/index.html b/tests/resampler/index.html index 5b26db1d5..a5940b357 100644 --- a/tests/resampler/index.html +++ b/tests/resampler/index.html @@ -123,7 +123,7 @@

Resampler Verificaiton

2010-2024 Chromium authors - (b506476) + (f98c9d8)
diff --git a/tests/setsinkid/index.html b/tests/setsinkid/index.html index 481378d28..f7be85ffa 100644 --- a/tests/setsinkid/index.html +++ b/tests/setsinkid/index.html @@ -122,7 +122,7 @@

AudioContext.setSinkId(): Manual Test

2010-2024 Chromium authors - (b506476) + (f98c9d8)