@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.
@@ -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
- listenSensors(): Promise<void>;
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
- listenSensors(): Promise<void>;
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;