@grame/faustwasm 0.1.2 → 0.1.4

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.
@@ -402,6 +402,12 @@ declare class WasmAllocator {
402
402
  * @returns The view of the memory buffer as Int32Array.
403
403
  */
404
404
  getInt32Array(): Int32Array;
405
+ /**
406
+ * Returns the Int64 view of the underlying buffer object.
407
+ *
408
+ * @returns The view of the memory buffer as BigInt64Array.
409
+ */
410
+ getInt64Array(): BigInt64Array;
405
411
  /**
406
412
  * Returns the Float32 view of the underlying buffer object.
407
413
  *
@@ -423,8 +429,9 @@ declare class Soundfile {
423
429
  private readonly fOffset;
424
430
  private readonly fSampleSize;
425
431
  private readonly fPtrSize;
432
+ private readonly fIntSize;
426
433
  private readonly fAllocator;
427
- constructor(allocator: WasmAllocator, ptrSize: number, sampleSize: number, curChan: number, length: number, maxChan: number, totalParts: number);
434
+ constructor(allocator: WasmAllocator, sampleSize: number, curChan: number, length: number, maxChan: number, totalParts: number);
428
435
  private allocBuffers;
429
436
  shareBuffers(curChan: number, maxChan: number): void;
430
437
  copyToOut(part: number, maxChannels: number, offset: number, buffer: AudioBuffer): void;
@@ -439,11 +446,17 @@ declare class Soundfile {
439
446
  }
440
447
  declare class SoundfileReader {
441
448
  private readonly fAllocator;
442
- private readonly fPtrSize;
443
449
  private readonly fSampleSize;
444
450
  private readonly fContext;
445
451
  private readonly fAudioBuffers;
446
- constructor(allocator: WasmAllocator, context: BaseAudioContext, ptrSize: number, sampleSize: number);
452
+ constructor(allocator: WasmAllocator, context: BaseAudioContext, sampleSize: number);
453
+ /**
454
+ * Check if the file exists.
455
+ *
456
+ * @param url : the url of the file to check
457
+ * @returns : true if the file exists, otherwise false
458
+ */
459
+ private checkFileExists;
447
460
  /**
448
461
  * Check if the file exists in the given directories.
449
462
  *
@@ -483,9 +496,8 @@ declare class SoundfileReader {
483
496
  * Crate a soundfile, load all parts and copy audio data to the wasm soundfile buffer.
484
497
  * @param pathNameList : list of soundfile paths
485
498
  * @param maxChan : maximum number of channels
486
- * @param isDouble : whether the soundfile will be copied as double
487
499
  */
488
- createSoundfile(pathNameList: string[], maxChan: number, isDouble: boolean): Promise<Soundfile | null>;
500
+ createSoundfile(pathNameList: string[], maxChan: number): Promise<Soundfile | null>;
489
501
  getHEAP32(): Int32Array;
490
502
  }
491
503
  /**