From 081631c9d2c648981a4c3a06732f3e42161e60c5 Mon Sep 17 00:00:00 2001 From: eof273 Date: Sat, 1 Feb 2025 19:22:03 +0700 Subject: [PATCH] Fix some typos; --- README.md | 2 +- .../basic/audio-worklet-node-options/index.njk | 2 +- .../basic/audio-worklet-node-options/main.js | 2 +- src/audio-worklet/basic/bit-crusher/main.js | 2 +- src/audio-worklet/basic/handling-errors/main.js | 2 +- .../basic/hello-audio-worklet/main.js | 2 +- src/audio-worklet/basic/message-port/main.js | 2 +- src/audio-worklet/basic/noise-generator/main.js | 2 +- src/audio-worklet/basic/one-pole-filter/main.js | 2 +- .../basic/one-pole-filter/one-pole-processor.js | 2 +- src/audio-worklet/basic/volume-meter/main.js | 2 +- .../design-pattern/lib/wasm-audio-helper.js | 8 ++++---- .../shared-buffer/shared-buffer-worker.js | 2 +- .../design-pattern/wasm-ring-buffer/main.js | 2 +- .../ring-buffer-worklet-processor.js | 2 +- .../variable-buffer-kernel.wasmmodule.js | 10 +++++----- .../design-pattern/wasm-supersaw/README.md | 2 +- .../design-pattern/wasm-supersaw/index.njk | 2 +- .../design-pattern/wasm-supersaw/synth.wasm.js | 2 +- .../wasm/simple-kernel.wasmmodule.js | 6 +++--- src/audio-worklet/free-queue/src/free-queue.js | 2 +- .../migration/spn-recorder/exporter.mjs | 2 +- .../migration/worklet-recorder/exporter.mjs | 2 +- src/demos/pool/o3d-webgl/base.js | 2 +- src/demos/pool/o3d-webgl/bitmap.js | 2 +- src/demos/pool/o3d-webgl/bounding_box.js | 2 +- src/demos/pool/o3d-webgl/client.js | 2 +- src/demos/pool/o3d-webgl/pack.js | 6 +++--- src/demos/pool/o3d-webgl/param.js | 2 +- src/demos/pool/o3d-webgl/texture.js | 2 +- src/demos/pool/o3d-webgl/transform.js | 6 +++--- src/demos/pool/o3d-webgl/tree_traversal.js | 2 +- src/demos/pwa-audio-recorder/indexeddb-storage.mjs | 2 +- .../stress-box/third-party/prototype-1.6.0.2.js | 4 ++-- src/demos/visualizer/lib/o3djs/base.js | 2 +- src/demos/visualizer/lib/o3djs/particles.js | 14 +++++++------- src/demos/visualizer/lib/o3djs/shader.js | 2 +- src/demos/wavetable-synth/lib/fft.js | 2 +- src/experiments/webgpuaudio/lib/free-queue.js | 2 +- src/experiments/webgpuaudio/main.js | 10 +++++----- src/lib/free-queue/free-queue-sab.js | 4 ++-- src/lib/free-queue/free-queue.js | 8 ++++---- src/lib/free-queue/test/free-queue.test.html | 4 ++-- src/rainfly/src/lib/utils/audio-buffer-to-wav.js | 2 +- src/tests/resampler/index.njk | 2 +- 45 files changed, 74 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index 7e38890bd..3ac5376f7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ actual site built from the source, see `gh-pages` branch. - `gh-pages`: the actual site built from `main` - `archive`: old projects/examples (V2 and earlier) -### How to make changes and depoly +### How to make changes and deploy 1. Clone the repository. 2. `npm install` diff --git a/src/audio-worklet/basic/audio-worklet-node-options/index.njk b/src/audio-worklet/basic/audio-worklet-node-options/index.njk index c6b0a677f..d4c0b41d8 100644 --- a/src/audio-worklet/basic/audio-worklet-node-options/index.njk +++ b/src/audio-worklet/basic/audio-worklet-node-options/index.njk @@ -12,7 +12,7 @@ to_root_dir: ../../../

{{ eleventyNavigation.title }}

A simple AudioWorkletNode constructor example that passes options of - waveform type and freqency to the matching AudioWorkletProcessor constructor. + waveform type and frequency to the matching AudioWorkletProcessor constructor.

See diff --git a/src/audio-worklet/basic/audio-worklet-node-options/main.js b/src/audio-worklet/basic/audio-worklet-node-options/main.js index ac791cfe9..86f6a0e64 100644 --- a/src/audio-worklet/basic/audio-worklet-node-options/main.js +++ b/src/audio-worklet/basic/audio-worklet-node-options/main.js @@ -29,7 +29,7 @@ const startAudio = async (context, options) => { } }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/bit-crusher/main.js b/src/audio-worklet/basic/bit-crusher/main.js index 18f79b047..c6d900ec2 100644 --- a/src/audio-worklet/basic/bit-crusher/main.js +++ b/src/audio-worklet/basic/bit-crusher/main.js @@ -29,7 +29,7 @@ const startAudio = async (context) => { oscillator.stop(8); }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/handling-errors/main.js b/src/audio-worklet/basic/handling-errors/main.js index 306be632b..a063530aa 100644 --- a/src/audio-worklet/basic/handling-errors/main.js +++ b/src/audio-worklet/basic/handling-errors/main.js @@ -28,7 +28,7 @@ const startAudio = async (context) => { processErrorWorkletNode.connect(context.destination); }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/hello-audio-worklet/main.js b/src/audio-worklet/basic/hello-audio-worklet/main.js index aa2233725..6a42c1a98 100644 --- a/src/audio-worklet/basic/hello-audio-worklet/main.js +++ b/src/audio-worklet/basic/hello-audio-worklet/main.js @@ -26,7 +26,7 @@ const startAudio = async (context) => { } }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/message-port/main.js b/src/audio-worklet/basic/message-port/main.js index 7d6f05145..6e13c491a 100644 --- a/src/audio-worklet/basic/message-port/main.js +++ b/src/audio-worklet/basic/message-port/main.js @@ -35,7 +35,7 @@ const startAudio = async (context) => { const messengerWorkletNode = new MessengerWorkletNode(context); }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/noise-generator/main.js b/src/audio-worklet/basic/noise-generator/main.js index 44d287b0e..f15fe8829 100644 --- a/src/audio-worklet/basic/noise-generator/main.js +++ b/src/audio-worklet/basic/noise-generator/main.js @@ -37,7 +37,7 @@ const startAudio = async (context) => { } }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/one-pole-filter/main.js b/src/audio-worklet/basic/one-pole-filter/main.js index eac11fb7e..652621237 100644 --- a/src/audio-worklet/basic/one-pole-filter/main.js +++ b/src/audio-worklet/basic/one-pole-filter/main.js @@ -34,7 +34,7 @@ const startAudio = async (context) => { } }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/basic/one-pole-filter/one-pole-processor.js b/src/audio-worklet/basic/one-pole-filter/one-pole-processor.js index c04b4f1fb..620009801 100644 --- a/src/audio-worklet/basic/one-pole-filter/one-pole-processor.js +++ b/src/audio-worklet/basic/one-pole-filter/one-pole-processor.js @@ -42,7 +42,7 @@ class OnePoleProcessor extends AudioWorkletProcessor { const inputChannel = input[channel]; const outputChannel = output[channel]; - // If |frequency| parameter doesn't chnage in the current render quantum, + // If |frequency| parameter doesn't change in the current render quantum, // we don't need to update the filter coef either. if (isFrequencyConstant) { this.updateCoefficientsWithFrequency_(frequency[0]); diff --git a/src/audio-worklet/basic/volume-meter/main.js b/src/audio-worklet/basic/volume-meter/main.js index c99f3ef98..4b909ff98 100644 --- a/src/audio-worklet/basic/volume-meter/main.js +++ b/src/audio-worklet/basic/volume-meter/main.js @@ -43,7 +43,7 @@ const stopAudio = () => { isGraphReady = false; }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/design-pattern/lib/wasm-audio-helper.js b/src/audio-worklet/design-pattern/lib/wasm-audio-helper.js index 87b2f5e2b..dc473a056 100644 --- a/src/audio-worklet/design-pattern/lib/wasm-audio-helper.js +++ b/src/audio-worklet/design-pattern/lib/wasm-audio-helper.js @@ -29,7 +29,7 @@ const RENDER_QUANTUM_FRAMES = 128; /** * A WASM HEAP wrapper for AudioBuffer class. This breaks down the AudioBuffer - * into an Array of Float32Array for the convinient WASM opearion. + * into an Array of Float32Array for the convinient WASM operation. * * @class * @dependency Module A WASM module generated by the emscripten glue code. @@ -167,7 +167,7 @@ class HeapAudioBuffer { * A JS FIFO implementation for the AudioWorklet. 3 assumptions for the * simpler operation: * 1. the push and the pull operation are done by 128 frames. (Web Audio - * API's render quantum size in the speficiation) + * API's render quantum size in the specification) * 2. the channel count of input/output cannot be changed dynamically. * The AudioWorkletNode should be configured with the `.channelCount = k` * (where k is the channel count you want) and @@ -211,7 +211,7 @@ class RingBuffer { */ push(arraySequence) { // The channel count of arraySequence and the length of each channel must - // match with this buffer obejct. + // match with this buffer object. // Transfer data from the |arraySequence| storage to the internal buffer. const sourceLength = arraySequence[0].length; @@ -236,7 +236,7 @@ class RingBuffer { */ pull(arraySequence) { // The channel count of arraySequence and the length of each channel must - // match with this buffer obejct. + // match with this buffer object. // If the FIFO is completely empty, do nothing. if (this._framesAvailable === 0) { diff --git a/src/audio-worklet/design-pattern/shared-buffer/shared-buffer-worker.js b/src/audio-worklet/design-pattern/shared-buffer/shared-buffer-worker.js index 54ec66728..38ff2a2db 100644 --- a/src/audio-worklet/design-pattern/shared-buffer/shared-buffer-worker.js +++ b/src/audio-worklet/design-pattern/shared-buffer/shared-buffer-worker.js @@ -19,7 +19,7 @@ // associated AWP via SharedArrayBuffer (SAB). // // A pair of SABs is created by this Worker. The one is for the shared states -// (Int32Array) of ring buffer between two obejcts and the other works like the +// (Int32Array) of ring buffer between two objects and the other works like the // ring buffer for audio content (Float32Array). // // The synchronization mechanism between two object is done by wake/wait diff --git a/src/audio-worklet/design-pattern/wasm-ring-buffer/main.js b/src/audio-worklet/design-pattern/wasm-ring-buffer/main.js index bbf07cce6..52d62971e 100644 --- a/src/audio-worklet/design-pattern/wasm-ring-buffer/main.js +++ b/src/audio-worklet/design-pattern/wasm-ring-buffer/main.js @@ -19,7 +19,7 @@ const startAudio = async (context) => { oscillator.start(); }; -// A simplem onLoad handler. It also handles user gesture to unlock the audio +// A simple onLoad handler. It also handles user gesture to unlock the audio // playback. window.addEventListener('load', async () => { const buttonEl = document.getElementById('button-start'); diff --git a/src/audio-worklet/design-pattern/wasm-ring-buffer/ring-buffer-worklet-processor.js b/src/audio-worklet/design-pattern/wasm-ring-buffer/ring-buffer-worklet-processor.js index 8eba6d74e..5e08355cd 100644 --- a/src/audio-worklet/design-pattern/wasm-ring-buffer/ring-buffer-worklet-processor.js +++ b/src/audio-worklet/design-pattern/wasm-ring-buffer/ring-buffer-worklet-processor.js @@ -78,7 +78,7 @@ class RingBufferWorkletProcessor extends AudioWorkletProcessor { this._inputAudioBuffer.pull(this._inputAudioBuffer.getChannelData()); // This WASM process function can be replaced with ScriptProcessor's - // |onaudioprocess| callback funciton. However, if the event handler + // |onaudioprocess| callback function. However, if the event handler // touches DOM in the main scope, it needs to be translated with the // async messaging via MessagePort. this._kernel.process( diff --git a/src/audio-worklet/design-pattern/wasm-ring-buffer/variable-buffer-kernel.wasmmodule.js b/src/audio-worklet/design-pattern/wasm-ring-buffer/variable-buffer-kernel.wasmmodule.js index 90f0a09e5..dc845becd 100644 --- a/src/audio-worklet/design-pattern/wasm-ring-buffer/variable-buffer-kernel.wasmmodule.js +++ b/src/audio-worklet/design-pattern/wasm-ring-buffer/variable-buffer-kernel.wasmmodule.js @@ -63,7 +63,7 @@ var read_, // Normally we don't log exceptions but instead let them bubble out the top // level where the embedding environment (e.g. the browser) can handle // them. -// However under v8 and node we sometimes exit the process direcly in which case +// However, under v8 and node we sometimes exit the process directly in which case // its up to use us to log the exception before exiting. // If we fix https://github.com/emscripten-core/emscripten/issues/15080 // this may no longer be needed under node. @@ -543,7 +543,7 @@ function assert(condition, text) { if (!condition) { // This build was created without ASSERTIONS defined. `assert()` should not // ever be called in this configuration but in case there are callers in - // the wild leave this simple abort() implemenation here for now. + // the wild leave this simple abort() implementation here for now. abort(text); } } @@ -1228,7 +1228,7 @@ function abort(what) { // allows this in the wasm spec. // Suppress closure compiler warning here. Closure compiler's builtin extern - // defintion for WebAssembly.RuntimeError claims it takes no arguments even + // definition for WebAssembly.RuntimeError claims it takes no arguments even // though it can. // TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure gets fixed. /** @suppress {checkTypes} */ @@ -1291,7 +1291,7 @@ function getBinary(file) { } function getBinaryPromise() { - // If we don't have the binary yet, try to to load it asynchronously. + // If we don't have the binary yet, try to load it asynchronously. // Fetch has some additional restrictions over XHR, like it can't be used on a file:// url. // See https://github.com/github/fetch/pull/92#issuecomment-140665932 // Cordova or Electron apps are typically loaded from a file:// url. @@ -1378,7 +1378,7 @@ function createWasm() { // User shell pages can write their own Module.instantiateWasm = function(imports, successCallback) callback // to manually instantiate the Wasm module themselves. This allows pages to run the instantiation parallel // to any other async startup actions they are performing. - // Also pthreads and wasm workers initialize the wasm instance through this path. + // Also, pthreads and wasm workers initialize the wasm instance through this path. if (Module['instantiateWasm']) { try { var exports = Module['instantiateWasm'](info, receiveInstance); diff --git a/src/audio-worklet/design-pattern/wasm-supersaw/README.md b/src/audio-worklet/design-pattern/wasm-supersaw/README.md index e1071a02a..94f13bb52 100644 --- a/src/audio-worklet/design-pattern/wasm-supersaw/README.md +++ b/src/audio-worklet/design-pattern/wasm-supersaw/README.md @@ -13,4 +13,4 @@ an additional step to build and compile. Follow the steps below: 3. In the terminal, run `make` to build the WASM file. -4. Serve `index.html` file in the directoy. +4. Serve `index.html` file in the directory. diff --git a/src/audio-worklet/design-pattern/wasm-supersaw/index.njk b/src/audio-worklet/design-pattern/wasm-supersaw/index.njk index 4ad3c372b..58b61f29e 100644 --- a/src/audio-worklet/design-pattern/wasm-supersaw/index.njk +++ b/src/audio-worklet/design-pattern/wasm-supersaw/index.njk @@ -12,7 +12,7 @@ to_root_dir: ../../../

{{ eleventyNavigation.title }}

A C++ supersaw synth ported via WebAssembly. This example desmonstrates a - bare minumum setup for Audio Worklet to use a WebAssembly module compiled + bare minimum setup for Audio Worklet to use a WebAssembly module compiled from multiple C++ source codes with dependency.

Press the power button to activate the audio engine. Then press the note button to play a tone.

diff --git a/src/audio-worklet/design-pattern/wasm-supersaw/synth.wasm.js b/src/audio-worklet/design-pattern/wasm-supersaw/synth.wasm.js index 4840563a6..79c2da39f 100644 --- a/src/audio-worklet/design-pattern/wasm-supersaw/synth.wasm.js +++ b/src/audio-worklet/design-pattern/wasm-supersaw/synth.wasm.js @@ -568,7 +568,7 @@ function abort(what) { // allows this in the wasm spec. // Suppress closure compiler warning here. Closure compiler's builtin extern - // defintion for WebAssembly.RuntimeError claims it takes no arguments even + // definition for WebAssembly.RuntimeError claims it takes no arguments even // though it can. // TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure gets fixed. /** @suppress {checkTypes} */ diff --git a/src/audio-worklet/design-pattern/wasm/simple-kernel.wasmmodule.js b/src/audio-worklet/design-pattern/wasm/simple-kernel.wasmmodule.js index 63c9b91f8..7f7758bfb 100644 --- a/src/audio-worklet/design-pattern/wasm/simple-kernel.wasmmodule.js +++ b/src/audio-worklet/design-pattern/wasm/simple-kernel.wasmmodule.js @@ -63,7 +63,7 @@ var read_, // Normally we don't log exceptions but instead let them bubble out the top // level where the embedding environment (e.g. the browser) can handle // them. -// However under v8 and node we sometimes exit the process direcly in which case +// However, under v8 and node we sometimes exit the process directly in which case // its up to use us to log the exception before exiting. // If we fix https://github.com/emscripten-core/emscripten/issues/15080 // this may no longer be needed under node. @@ -543,7 +543,7 @@ function assert(condition, text) { if (!condition) { // This build was created without ASSERTIONS defined. `assert()` should not // ever be called in this configuration but in case there are callers in - // the wild leave this simple abort() implemenation here for now. + // the wild leave this simple abort() implementation here for now. abort(text); } } @@ -1228,7 +1228,7 @@ function abort(what) { // allows this in the wasm spec. // Suppress closure compiler warning here. Closure compiler's builtin extern - // defintion for WebAssembly.RuntimeError claims it takes no arguments even + // definition for WebAssembly.RuntimeError claims it takes no arguments even // though it can. // TODO(https://github.com/google/closure-compiler/pull/3913): Remove if/when upstream closure gets fixed. /** @suppress {checkTypes} */ diff --git a/src/audio-worklet/free-queue/src/free-queue.js b/src/audio-worklet/free-queue/src/free-queue.js index 7acd7ac61..e31025d29 100644 --- a/src/audio-worklet/free-queue/src/free-queue.js +++ b/src/audio-worklet/free-queue/src/free-queue.js @@ -29,7 +29,7 @@ class FreeQueue { } /** - * FreeQueue constructor. A shared buffer created by this constuctor + * FreeQueue constructor. A shared buffer created by this constructor * will be shared between two threads. * * @param {number} size Frame buffer length. diff --git a/src/audio-worklet/migration/spn-recorder/exporter.mjs b/src/audio-worklet/migration/spn-recorder/exporter.mjs index 43c3e1cde..e6e38b184 100644 --- a/src/audio-worklet/migration/spn-recorder/exporter.mjs +++ b/src/audio-worklet/migration/spn-recorder/exporter.mjs @@ -25,7 +25,7 @@ function _writeInt32ToArray(aNumber, targetArray, offset) { } // Return the bits of the float as a 32-bit integer value. This -// produces the raw bits; no intepretation of the value is done. +// produces the raw bits; no interpretation of the value is done. function _floatBits(f) { const buf = new ArrayBuffer(4); (new Float32Array(buf))[0] = f; diff --git a/src/audio-worklet/migration/worklet-recorder/exporter.mjs b/src/audio-worklet/migration/worklet-recorder/exporter.mjs index 43c3e1cde..e6e38b184 100644 --- a/src/audio-worklet/migration/worklet-recorder/exporter.mjs +++ b/src/audio-worklet/migration/worklet-recorder/exporter.mjs @@ -25,7 +25,7 @@ function _writeInt32ToArray(aNumber, targetArray, offset) { } // Return the bits of the float as a 32-bit integer value. This -// produces the raw bits; no intepretation of the value is done. +// produces the raw bits; no interpretation of the value is done. function _floatBits(f) { const buf = new ArrayBuffer(4); (new Float32Array(buf))[0] = f; diff --git a/src/demos/pool/o3d-webgl/base.js b/src/demos/pool/o3d-webgl/base.js index d5e01cc08..c64b62977 100644 --- a/src/demos/pool/o3d-webgl/base.js +++ b/src/demos/pool/o3d-webgl/base.js @@ -31,7 +31,7 @@ /** - * @fileoverview Base for all o3d classes implemented in javscript. + * @fileoverview Base for all o3d classes implemented in javascript. * Include just this file in a script tag and it will include all other * source files needed by o3d. * For more information about o3d see diff --git a/src/demos/pool/o3d-webgl/bitmap.js b/src/demos/pool/o3d-webgl/bitmap.js index 444fc0cb0..8bc31a03f 100644 --- a/src/demos/pool/o3d-webgl/bitmap.js +++ b/src/demos/pool/o3d-webgl/bitmap.js @@ -34,7 +34,7 @@ * Bitmap provides an interface for basic image operations on bitmap, * including scale and crop. A Bitmap can be created from RawData via * pack.createBitmapsFromRawData(), and also can be transferred to mip of a - * Texure2D or a specific face of TextureCUBE via methods in Texture. + * Texture2D or a specific face of TextureCUBE via methods in Texture. * @constructor */ o3d.Bitmap = function() { diff --git a/src/demos/pool/o3d-webgl/bounding_box.js b/src/demos/pool/o3d-webgl/bounding_box.js index b585c31ee..c71a9c66e 100644 --- a/src/demos/pool/o3d-webgl/bounding_box.js +++ b/src/demos/pool/o3d-webgl/bounding_box.js @@ -193,7 +193,7 @@ o3d.BoundingBox.prototype.intersectRay = var which_plane; // Find candidate planes; this loop can be avoided if rays cast all from - // the eye (assumes perpsective view). + // the eye (assumes perspective view). for (var i = 0; i < kNumberOfDimensions; ++i) { if (start[i] < min_extent_[i]) { quadrant[i] = kLeft; diff --git a/src/demos/pool/o3d-webgl/client.js b/src/demos/pool/o3d-webgl/client.js index 41a9b768b..6b1014d98 100644 --- a/src/demos/pool/o3d-webgl/client.js +++ b/src/demos/pool/o3d-webgl/client.js @@ -168,7 +168,7 @@ o3d.ClientInfo.prototype.buffer_memory_used = 0; * browser from that same command line if you want to effect just * that instance of the browser. * - * Note that many browers require special command line options to + * Note that many browsers require special command line options to * run in a separate process, otherwise they default to finding * the browser process already running and using that. For example * firefox requires the option -no-remote. diff --git a/src/demos/pool/o3d-webgl/pack.js b/src/demos/pool/o3d-webgl/pack.js index 3b820d488..eaab2cc62 100644 --- a/src/demos/pool/o3d-webgl/pack.js +++ b/src/demos/pool/o3d-webgl/pack.js @@ -51,7 +51,7 @@ o3d.inherit('Pack', 'NamedObject'); * after the pack's destruction. Objects will only be destroyed after all * references to them have been removed. * - * NOTE: Calling pack.destroy does NOT free your resources. It justs releases + * NOTE: Calling pack.destroy does NOT free your resources. It just releases * the pack's reference to those resources. An example should hopefully make * it clearer. * @@ -194,7 +194,7 @@ o3d.Pack.prototype.createObject = * @param {number} height The height of the texture area in texels (max = 2048) * @param {o3d.Texture.Format} format The memory format of each texel * @param {number} levels The number of mipmap levels. Use zero to create the - * compelete mipmap chain. + * complete mipmap chain. * @param {boolean} enable_render_surfaces If true, the texture object will * expose RenderSurface objects through GetRenderSurface(...). * @return {!o3d.Texture2D} The Texture2D object. @@ -231,7 +231,7 @@ o3d.Pack.prototype.createTexture2D = * (max = 2048) * @param {o3d.Texture.Format} format The memory format of each texel. * @param {number} levels The number of mipmap levels. Use zero to create - * the compelete mipmap chain. + * the complete mipmap chain. * @param {boolean} enableRenderSurfaces If true, the texture object * will expose RenderSurface objects through GetRenderSurface(...). * @return {!o3d.TextureCUBE} The TextureCUBE object. diff --git a/src/demos/pool/o3d-webgl/param.js b/src/demos/pool/o3d-webgl/param.js index 1792eb8bd..a613030c0 100644 --- a/src/demos/pool/o3d-webgl/param.js +++ b/src/demos/pool/o3d-webgl/param.js @@ -805,7 +805,7 @@ o3d.ParamMatrix4.prototype.applyToLocation = function(gl, location) { }; /** - * A counter to ensure each texture sampler gets a unqiue id. + * A counter to ensure each texture sampler gets a unique id. * @private */ o3d.Param.texture_index_ = 0; diff --git a/src/demos/pool/o3d-webgl/texture.js b/src/demos/pool/o3d-webgl/texture.js index 5e0f3ff64..924476a2e 100644 --- a/src/demos/pool/o3d-webgl/texture.js +++ b/src/demos/pool/o3d-webgl/texture.js @@ -556,7 +556,7 @@ o3d.TextureCUBE.prototype.drawImage = /** - * Makes this texture currrent, and sets various texParameters provided they + * Makes this texture current, and sets various texParameters provided they * have changed since the last time bindAndSetParameters_ was called for this * texture. * @param {number} addressModeU The address mode in the U coordinate. diff --git a/src/demos/pool/o3d-webgl/transform.js b/src/demos/pool/o3d-webgl/transform.js index 929abfd62..ef2f6e8eb 100644 --- a/src/demos/pool/o3d-webgl/transform.js +++ b/src/demos/pool/o3d-webgl/transform.js @@ -31,7 +31,7 @@ /** - * The Transform defines parent child relationship and a localMatrix.. + * The Transform defines parent child relationship and a localMatrix. * A Transform can have one or no parents and * an arbitrary number of children. * @@ -291,7 +291,7 @@ o3d.Transform.prototype.identity = function() { /* - * Utility function to copose a matrix with another matrix. + * Utility function to compose a matrix with another matrix. * Precomposes b with a, changing a, or if the target matrix if * one is provided. * @@ -564,7 +564,7 @@ o3d.Transform.prototype.translate = /** * Pre-composes the local matrix of this Transform with a rotation about the - * x-axis. For example, if the local matrix is a tranlsation, the new local + * x-axis. For example, if the local matrix is a translation, the new local * matrix will rotate around the x-axis and then translate. * * @param {number} radians The number of radians to rotate around x-axis. diff --git a/src/demos/pool/o3d-webgl/tree_traversal.js b/src/demos/pool/o3d-webgl/tree_traversal.js index 149b25ba4..ff99ef949 100644 --- a/src/demos/pool/o3d-webgl/tree_traversal.js +++ b/src/demos/pool/o3d-webgl/tree_traversal.js @@ -38,7 +38,7 @@ * DrawElement to that DrawList. * * @param {o3d.Transform} opt_transform The root transform to start traversing - * by this TreeTraveral. + * by this TreeTraversal. * @constructor */ o3d.TreeTraversal = function(opt_transform) { diff --git a/src/demos/pwa-audio-recorder/indexeddb-storage.mjs b/src/demos/pwa-audio-recorder/indexeddb-storage.mjs index bd1430600..989b19802 100644 --- a/src/demos/pwa-audio-recorder/indexeddb-storage.mjs +++ b/src/demos/pwa-audio-recorder/indexeddb-storage.mjs @@ -80,7 +80,7 @@ class IndexedDBStorage { // cursor is undefined on the initial invocation, which triggers // the data loading. Finally, cursor will be falsey when the // previous next() invocation could not return any more data. - // Cursor being truthy indicates that the previos next() + // Cursor being truthy indicates that the previous next() // invocation returned data and there might be more. Calling // continue() will invoke the onsuccess event handler with the // next data entry. diff --git a/src/demos/stress-box/third-party/prototype-1.6.0.2.js b/src/demos/stress-box/third-party/prototype-1.6.0.2.js index 6385503a1..5ba10cc2f 100755 --- a/src/demos/stress-box/third-party/prototype-1.6.0.2.js +++ b/src/demos/stress-box/third-party/prototype-1.6.0.2.js @@ -4063,7 +4063,7 @@ var $continue = new Error('"throw $continue" is deprecated, use "return" instead // further below, that map to the newer Element methods. var Position = { // set to true if needed, warning: firefox performance problems - // NOT neeeded for page scrolling, only if draggable contained in + // NOT needed for page scrolling, only if draggable contained in // scrollable elements includeScrollOffsets: false, @@ -4218,4 +4218,4 @@ Object.extend(Element.ClassNames.prototype, Enumerable); /*--------------------------------------------------------------------------*/ -Element.addMethods(); \ No newline at end of file +Element.addMethods(); diff --git a/src/demos/visualizer/lib/o3djs/base.js b/src/demos/visualizer/lib/o3djs/base.js index 9b93ba47b..0e26a41da 100644 --- a/src/demos/visualizer/lib/o3djs/base.js +++ b/src/demos/visualizer/lib/o3djs/base.js @@ -31,7 +31,7 @@ /** - * @fileoverview Base for all o3d sample utilties. + * @fileoverview Base for all o3d sample utilities. * For more information about o3d see * http://code.google.com/p/o3d. * diff --git a/src/demos/visualizer/lib/o3djs/particles.js b/src/demos/visualizer/lib/o3djs/particles.js index 7d67c1501..c4ff1728e 100644 --- a/src/demos/visualizer/lib/o3djs/particles.js +++ b/src/demos/visualizer/lib/o3djs/particles.js @@ -418,8 +418,8 @@ o3djs.particles.ParticleSystem.prototype.createTextureFromFloats = function(widt * ); * * - * Many of these parameters are in pairs. For paired paramters each particle - * specfic value is set like this + * Many of these parameters are in pairs. For paired parameters each particle + * specific value is set like this * * particle.field = value + Math.random() - 0.5 * valueRange * 2; * @@ -530,7 +530,7 @@ o3djs.particles.ParticleSpec = function() { this.positionRange = [0, 0, 0]; /** - * The velocity of a paritcle in local space. + * The velocity of a particle in local space. * @type {!o3djs.math.Vector3} */ this.velocity = [0, 0, 0]; @@ -548,7 +548,7 @@ o3djs.particles.ParticleSpec = function() { this.acceleration = [0, 0, 0]; /** - * The accleration range. + * The acceleration range. * @type {!o3djs.math.Vector3} */ this.accelerationRange = [0, 0, 0]; @@ -590,13 +590,13 @@ o3djs.particles.ParticleSpec = function() { this.colorMultRange = [0, 0, 0, 0]; /** - * The velocity of all paritcles in world space. + * The velocity of all particles in world space. * @type {!o3djs.math.Vector3} */ this.worldVelocity = [0, 0, 0]; /** - * The acceleration of all paritcles in world space. + * The acceleration of all particles in world space. * @type {!o3djs.math.Vector3} */ this.worldAcceleration = [0, 0, 0]; @@ -1021,7 +1021,7 @@ o3djs.particles.ParticleEmitter.prototype.allocateParticles_ = function( * Sets the parameters of the particle emitter. * * Each of these parameters are in pairs. The used to create a table - * of particle parameters. For each particle a specfic value is + * of particle parameters. For each particle a specific value is * set like this * * particle.field = value + Math.random() - 0.5 * valueRange * 2; diff --git a/src/demos/visualizer/lib/o3djs/shader.js b/src/demos/visualizer/lib/o3djs/shader.js index f671a0350..249ca75cf 100644 --- a/src/demos/visualizer/lib/o3djs/shader.js +++ b/src/demos/visualizer/lib/o3djs/shader.js @@ -108,7 +108,7 @@ o3djs.shader.loadFromURL = function(gl, /** - * Helper which convers GLSL names to JavaScript names. + * Helper which converts GLSL names to JavaScript names. * @private */ o3djs.shader.glslNameToJs_ = function(name) { diff --git a/src/demos/wavetable-synth/lib/fft.js b/src/demos/wavetable-synth/lib/fft.js index 63dbcd541..c38b3b973 100755 --- a/src/demos/wavetable-synth/lib/fft.js +++ b/src/demos/wavetable-synth/lib/fft.js @@ -88,7 +88,7 @@ function FFT(bufferSize, sampleRate) { } /** - * Performs a forward tranform on the sample buffer. + * Performs a forward transform on the sample buffer. * Converts a time domain signal to frequency domain spectra. * * @param {Array} buffer The sample buffer. Buffer Length must be power of 2 diff --git a/src/experiments/webgpuaudio/lib/free-queue.js b/src/experiments/webgpuaudio/lib/free-queue.js index be60eaece..f79a6a9ba 100644 --- a/src/experiments/webgpuaudio/lib/free-queue.js +++ b/src/experiments/webgpuaudio/lib/free-queue.js @@ -29,7 +29,7 @@ class FreeQueue { } /** - * FreeQueue constructor. A shared buffer created by this constuctor + * FreeQueue constructor. A shared buffer created by this constructor * will be shared between two threads. * * @param {number} size Frame buffer length. diff --git a/src/experiments/webgpuaudio/main.js b/src/experiments/webgpuaudio/main.js index e900f96cd..caf9baca6 100644 --- a/src/experiments/webgpuaudio/main.js +++ b/src/experiments/webgpuaudio/main.js @@ -100,26 +100,26 @@ const toggleButtonClickHandler = async () => { // Detect required features. const detectFeaturesAndReport = (viewElement) => { - let areRequiremensMet = true; + let areRequirementsMet = true; if (typeof navigator.gpu !== 'object') { viewElement.textContent += 'ERROR: WebGPU is not available on your browser.\r\n'; - areRequiremensMet = false; + areRequirementsMet = false; } if (typeof SharedArrayBuffer !== 'function') { viewElement.textContent += 'ERROR: SharedArrayBuffer is not available on your browser.\r\n'; - areRequiremensMet = false; + areRequirementsMet = false; } - if (areRequiremensMet) { + if (areRequirementsMet) { viewElement.textContent += 'All requirements have been met. The experiment is ready to run.\r\n'; } - return areRequiremensMet; + return areRequirementsMet; }; window.addEventListener('load', async () => { diff --git a/src/lib/free-queue/free-queue-sab.js b/src/lib/free-queue/free-queue-sab.js index 3a6e2abd1..802111ee1 100644 --- a/src/lib/free-queue/free-queue-sab.js +++ b/src/lib/free-queue/free-queue-sab.js @@ -29,7 +29,7 @@ class FreeQueueSAB { } /** - * FreeQueue constructor. A shared buffer created by this constuctor + * FreeQueue constructor. A shared buffer created by this constructor * will be shared between two threads. * * @param {number} size Frame buffer length. @@ -231,4 +231,4 @@ class FreeQueueSAB { } } -export { FreeQueueSAB }; \ No newline at end of file +export { FreeQueueSAB }; diff --git a/src/lib/free-queue/free-queue.js b/src/lib/free-queue/free-queue.js index 0ad7ade9b..fbfa9c9f9 100644 --- a/src/lib/free-queue/free-queue.js +++ b/src/lib/free-queue/free-queue.js @@ -29,7 +29,7 @@ const RENDER_QUANTUM_FRAMES = 128; /** * A WASM HEAP wrapper for AudioBuffer class. This breaks down the AudioBuffer - * into an Array of Float32Array for the convinient WASM opearion. + * into an Array of Float32Array for the convinient WASM operation. * * @class * @dependency Module A WASM module generated by the emscripten glue code. @@ -188,7 +188,7 @@ class FreeQueue { */ push(arraySequence) { // The channel count of arraySequence and the length of each channel must - // match with this buffer obejct. + // match with this buffer object. if (arraySequence.length !== this._channelCount) { throw new Error(`Channel count mismatch: expected ${this._channelCount}, but got ${arraySequence.length}.`); @@ -217,7 +217,7 @@ class FreeQueue { */ pull(arraySequence) { // The channel count of arraySequence and the length of each channel must - // match with this buffer obejct. + // match with this buffer object. if (arraySequence.length !== this._channelCount) { throw new Error(`Channel count mismatch: expected ${this._channelCount}, but got ${arraySequence.length}.`); @@ -249,4 +249,4 @@ export { MAX_CHANNEL_COUNT, RENDER_QUANTUM_FRAMES, FreeQueue -}; \ No newline at end of file +}; diff --git a/src/lib/free-queue/test/free-queue.test.html b/src/lib/free-queue/test/free-queue.test.html index ae35422d6..1dad5a037 100644 --- a/src/lib/free-queue/test/free-queue.test.html +++ b/src/lib/free-queue/test/free-queue.test.html @@ -36,7 +36,7 @@

FreeQueue Test

- + - \ No newline at end of file + diff --git a/src/rainfly/src/lib/utils/audio-buffer-to-wav.js b/src/rainfly/src/lib/utils/audio-buffer-to-wav.js index 418bdfcb6..b28989dcb 100644 --- a/src/rainfly/src/lib/utils/audio-buffer-to-wav.js +++ b/src/rainfly/src/lib/utils/audio-buffer-to-wav.js @@ -43,7 +43,7 @@ const _writeInt32ToArray = (aNumber, targetArray, offset) => { }; // Return the bits of the float as a 32-bit integer value. This -// produces the raw bits; no intepretation of the value is done. +// produces the raw bits; no interpretation of the value is done. const _floatBits = (f) => { const buf = new ArrayBuffer(4); (new Float32Array(buf))[0] = f; diff --git a/src/tests/resampler/index.njk b/src/tests/resampler/index.njk index d8d6e43d3..26e3ae9fa 100644 --- a/src/tests/resampler/index.njk +++ b/src/tests/resampler/index.njk @@ -1,7 +1,7 @@ --- eleventyNavigation: key: test-resampler-bug - title: Resampler Verificaiton + title: Resampler Verification parent: tests to_root_dir: ../../ ---