@grame/faustwasm 0.6.4 → 0.7.3
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/create-node.js +5 -3
- package/assets/standalone/faustwasm/index.d.ts +10 -4
- package/assets/standalone/faustwasm/index.js +69 -35
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/assets/standalone/index-pwa.js +57 -8
- package/assets/standalone/index-template.js +3 -3
- package/assets/standalone/index.js +4 -4
- package/dist/cjs/index.d.ts +10 -4
- package/dist/cjs/index.js +69 -35
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +10 -4
- package/dist/cjs-bundle/index.js +71 -37
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +10 -4
- package/dist/esm/index.js +69 -35
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +10 -4
- package/dist/esm-bundle/index.js +71 -37
- package/dist/esm-bundle/index.js.map +2 -2
- package/libfaust-wasm/libfaust-wasm.js +1 -1
- package/libfaust-wasm/libfaust-wasm.wasm +0 -0
- package/package.json +1 -1
- package/src/FaustAudioWorkletNode.ts +35 -16
- package/src/FaustScriptProcessorNode.ts +38 -16
- package/src/FaustWebAudioDsp.ts +2 -3
- package/test/faustlive-wasm/faustwasm/index.d.ts +10 -4
- package/test/faustlive-wasm/faustwasm/index.js +69 -35
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/faustlive-wasm/index.js +3 -2
- package/test/osc2.dsp +1 -1
|
@@ -628,11 +628,11 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
628
628
|
*/
|
|
629
629
|
getJSON(): string;
|
|
630
630
|
/**
|
|
631
|
-
* Start the DSP.
|
|
631
|
+
* Start the DSP audio processing.
|
|
632
632
|
*/
|
|
633
633
|
start(): void;
|
|
634
634
|
/**
|
|
635
|
-
* Stop the DSP.
|
|
635
|
+
* Stop the DSP audio processing.
|
|
636
636
|
*/
|
|
637
637
|
stop(): void;
|
|
638
638
|
/**
|
|
@@ -1296,8 +1296,11 @@ export declare class FaustAudioWorkletNode<Poly extends boolean = false> extends
|
|
|
1296
1296
|
protected fUICallback: UIHandler;
|
|
1297
1297
|
protected fDescriptor: FaustUIInputItem[];
|
|
1298
1298
|
constructor(context: BaseAudioContext, name: string, factory: LooseFaustDspFactory, options?: Partial<FaustAudioWorkletNodeOptions<Poly>>);
|
|
1299
|
+
private handleDeviceMotion;
|
|
1300
|
+
private handleDeviceOrientation;
|
|
1299
1301
|
/** Setup accelerometer and gyroscope handlers */
|
|
1300
|
-
|
|
1302
|
+
startSensors(): Promise<void>;
|
|
1303
|
+
stopSensors(): void;
|
|
1301
1304
|
setOutputParamHandler(handler: OutputParamHandler | null): void;
|
|
1302
1305
|
getOutputParamHandler(): OutputParamHandler | null;
|
|
1303
1306
|
setComputeHandler(handler: ComputeHandler | null): void;
|
|
@@ -1359,9 +1362,12 @@ export declare class FaustScriptProcessorNode<Poly extends boolean = false> exte
|
|
|
1359
1362
|
protected fDSPCode: Poly extends true ? FaustPolyWebAudioDsp : FaustMonoWebAudioDsp;
|
|
1360
1363
|
protected fInputs: Float32Array[];
|
|
1361
1364
|
protected fOutputs: Float32Array[];
|
|
1365
|
+
protected handleDeviceMotion: any;
|
|
1366
|
+
protected handleDeviceOrientation: any;
|
|
1362
1367
|
init(instance: Poly extends true ? FaustPolyWebAudioDsp : FaustMonoWebAudioDsp): void;
|
|
1363
1368
|
/** Setup accelerometer and gyroscope handlers */
|
|
1364
|
-
|
|
1369
|
+
startSensors(): Promise<void>;
|
|
1370
|
+
stopSensors(): void;
|
|
1365
1371
|
compute(input: Float32Array[], output: Float32Array[]): boolean;
|
|
1366
1372
|
setOutputParamHandler(handler: OutputParamHandler): void;
|
|
1367
1373
|
getOutputParamHandler(): OutputParamHandler | null;
|