@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.
- package/assets/standalone/faustwasm/index.d.ts +17 -5
- package/assets/standalone/faustwasm/index.js +69 -47
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +17 -5
- package/dist/cjs/index.js +69 -47
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +17 -5
- package/dist/cjs-bundle/index.js +71 -49
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +17 -5
- package/dist/esm/index.js +69 -47
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +17 -5
- package/dist/esm-bundle/index.js +71 -49
- 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/FaustWasmInstantiator.ts +14 -5
- package/src/FaustWebAudioDsp.ts +97 -46
- package/test/faustlive-wasm/faustwasm/index.d.ts +17 -5
- package/test/faustlive-wasm/faustwasm/index.js +69 -47
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
|
@@ -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,
|
|
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,
|
|
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
|
|
500
|
+
createSoundfile(pathNameList: string[], maxChan: number): Promise<Soundfile | null>;
|
|
489
501
|
getHEAP32(): Int32Array;
|
|
490
502
|
}
|
|
491
503
|
/**
|