@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
|
@@ -1278,7 +1278,7 @@ export declare class FaustAudioWorkletNode<Poly extends boolean = false> extends
|
|
|
1278
1278
|
protected fDescriptor: FaustUIInputItem[];
|
|
1279
1279
|
constructor(context: BaseAudioContext, name: string, factory: LooseFaustDspFactory, options: FaustAudioWorkletNodeOptions<Poly>["processorOptions"], nodeOptions?: Partial<FaustAudioWorkletNodeOptions>);
|
|
1280
1280
|
/** Setup accelerometer and gyroscope handlers */
|
|
1281
|
-
|
|
1281
|
+
listenSensors(): Promise<void>;
|
|
1282
1282
|
setOutputParamHandler(handler: OutputParamHandler | null): void;
|
|
1283
1283
|
getOutputParamHandler(): OutputParamHandler | null;
|
|
1284
1284
|
setComputeHandler(handler: ComputeHandler | null): void;
|
|
@@ -1341,7 +1341,7 @@ export declare class FaustScriptProcessorNode<Poly extends boolean = false> exte
|
|
|
1341
1341
|
protected fOutputs: Float32Array[];
|
|
1342
1342
|
init(instance: Poly extends true ? FaustPolyWebAudioDsp : FaustMonoWebAudioDsp): void;
|
|
1343
1343
|
/** Setup accelerometer and gyroscope handlers */
|
|
1344
|
-
|
|
1344
|
+
listenSensors(): Promise<void>;
|
|
1345
1345
|
compute(input: Float32Array[], output: Float32Array[]): boolean;
|
|
1346
1346
|
setOutputParamHandler(handler: OutputParamHandler): void;
|
|
1347
1347
|
getOutputParamHandler(): OutputParamHandler | null;
|
|
@@ -3647,7 +3647,7 @@ var FaustAudioWorkletNode = class extends (globalThis.AudioWorkletNode || null)
|
|
|
3647
3647
|
}
|
|
3648
3648
|
// Public API
|
|
3649
3649
|
/** Setup accelerometer and gyroscope handlers */
|
|
3650
|
-
async
|
|
3650
|
+
async listenSensors() {
|
|
3651
3651
|
if (this.hasAccInput) {
|
|
3652
3652
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
3653
3653
|
if (!accelerationIncludingGravity)
|
|
@@ -3905,7 +3905,7 @@ var FaustScriptProcessorNode = class extends (globalThis.ScriptProcessorNode ||
|
|
|
3905
3905
|
}
|
|
3906
3906
|
// Public API
|
|
3907
3907
|
/** Setup accelerometer and gyroscope handlers */
|
|
3908
|
-
async
|
|
3908
|
+
async listenSensors() {
|
|
3909
3909
|
if (this.hasAccInput) {
|
|
3910
3910
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
3911
3911
|
if (!accelerationIncludingGravity)
|