@grame/faustwasm 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/standalone/faustwasm/index.d.ts +2 -2
- package/assets/standalone/faustwasm/index.js +2 -2
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/assets/standalone/index-poly.js +15 -11
- package/assets/standalone/index.js +1 -1
- package/build +18 -0
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +2 -2
- package/dist/cjs-bundle/index.js +2 -2
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +2 -2
- package/dist/esm-bundle/index.js +2 -2
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +1 -1
- package/src/FaustAudioWorkletNode.ts +1 -1
- package/src/FaustScriptProcessorNode.ts +3 -3
- package/test/faustlive-wasm/faustwasm/index.d.ts +2 -2
- package/test/faustlive-wasm/faustwasm/index.js +2 -2
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
|
@@ -1285,7 +1285,7 @@ export declare class FaustAudioWorkletNode<Poly extends boolean = false> extends
|
|
|
1285
1285
|
protected fDescriptor: FaustUIInputItem[];
|
|
1286
1286
|
constructor(context: BaseAudioContext, name: string, factory: LooseFaustDspFactory, options: FaustAudioWorkletNodeOptions<Poly>["processorOptions"], nodeOptions?: Partial<FaustAudioWorkletNodeOptions>);
|
|
1287
1287
|
/** Setup accelerometer and gyroscope handlers */
|
|
1288
|
-
|
|
1288
|
+
listenSensors(): Promise<void>;
|
|
1289
1289
|
setOutputParamHandler(handler: OutputParamHandler | null): void;
|
|
1290
1290
|
getOutputParamHandler(): OutputParamHandler | null;
|
|
1291
1291
|
setComputeHandler(handler: ComputeHandler | null): void;
|
|
@@ -1348,7 +1348,7 @@ export declare class FaustScriptProcessorNode<Poly extends boolean = false> exte
|
|
|
1348
1348
|
protected fOutputs: Float32Array[];
|
|
1349
1349
|
init(instance: Poly extends true ? FaustPolyWebAudioDsp : FaustMonoWebAudioDsp): void;
|
|
1350
1350
|
/** Setup accelerometer and gyroscope handlers */
|
|
1351
|
-
|
|
1351
|
+
listenSensors(): Promise<void>;
|
|
1352
1352
|
compute(input: Float32Array[], output: Float32Array[]): boolean;
|
|
1353
1353
|
setOutputParamHandler(handler: OutputParamHandler): void;
|
|
1354
1354
|
getOutputParamHandler(): OutputParamHandler | null;
|
package/dist/esm-bundle/index.js
CHANGED
|
@@ -9649,7 +9649,7 @@ var FaustAudioWorkletNode = class extends (globalThis.AudioWorkletNode || null)
|
|
|
9649
9649
|
}
|
|
9650
9650
|
// Public API
|
|
9651
9651
|
/** Setup accelerometer and gyroscope handlers */
|
|
9652
|
-
async
|
|
9652
|
+
async listenSensors() {
|
|
9653
9653
|
if (this.hasAccInput) {
|
|
9654
9654
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
9655
9655
|
if (!accelerationIncludingGravity)
|
|
@@ -9907,7 +9907,7 @@ var FaustScriptProcessorNode = class extends (globalThis.ScriptProcessorNode ||
|
|
|
9907
9907
|
}
|
|
9908
9908
|
// Public API
|
|
9909
9909
|
/** Setup accelerometer and gyroscope handlers */
|
|
9910
|
-
async
|
|
9910
|
+
async listenSensors() {
|
|
9911
9911
|
if (this.hasAccInput) {
|
|
9912
9912
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
9913
9913
|
if (!accelerationIncludingGravity)
|