@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/cjs-bundle/index.js
CHANGED
|
@@ -9694,7 +9694,7 @@ export default ${(_b = jsCode.match(jsCodeHead)) == null ? void 0 : _b[1]};
|
|
|
9694
9694
|
}
|
|
9695
9695
|
// Public API
|
|
9696
9696
|
/** Setup accelerometer and gyroscope handlers */
|
|
9697
|
-
async
|
|
9697
|
+
async listenSensors() {
|
|
9698
9698
|
if (this.hasAccInput) {
|
|
9699
9699
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
9700
9700
|
if (!accelerationIncludingGravity)
|
|
@@ -9952,7 +9952,7 @@ export default ${(_b = jsCode.match(jsCodeHead)) == null ? void 0 : _b[1]};
|
|
|
9952
9952
|
}
|
|
9953
9953
|
// Public API
|
|
9954
9954
|
/** Setup accelerometer and gyroscope handlers */
|
|
9955
|
-
async
|
|
9955
|
+
async listenSensors() {
|
|
9956
9956
|
if (this.hasAccInput) {
|
|
9957
9957
|
const handleDeviceMotion = ({ accelerationIncludingGravity }) => {
|
|
9958
9958
|
if (!accelerationIncludingGravity)
|