@grame/faustwasm 0.0.65 → 0.0.66
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 +4 -4
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +2 -2
- package/dist/cjs-bundle/index.js +4 -4
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +2 -2
- package/dist/esm-bundle/index.js +4 -4
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +2 -2
- package/src/FaustCmajor.ts +6 -6
- package/test/faustlive-wasm/faustwasm/index.d.ts +2 -2
- package/test/faustlive-wasm/faustwasm/index.js +4 -4
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1000,8 +1000,8 @@ export interface IFaustCmajor {
|
|
|
1000
1000
|
compile(name: string, code: string, args: string): string;
|
|
1001
1001
|
}
|
|
1002
1002
|
export declare class FaustCmajor implements IFaustCmajor {
|
|
1003
|
-
private
|
|
1004
|
-
constructor(
|
|
1003
|
+
private fLibFaust;
|
|
1004
|
+
constructor(libfaust: LibFaust);
|
|
1005
1005
|
compile(name: string, code: string, args: string): string;
|
|
1006
1006
|
}
|
|
1007
1007
|
export interface WavEncoderOptions {
|
package/dist/cjs/index.js
CHANGED
|
@@ -2761,12 +2761,12 @@ this.fAudioMixingHalf: ${this.fAudioMixingHalf}`;
|
|
|
2761
2761
|
|
|
2762
2762
|
// src/FaustCmajor.ts
|
|
2763
2763
|
var FaustCmajor = class {
|
|
2764
|
-
constructor(
|
|
2765
|
-
this.
|
|
2764
|
+
constructor(libfaust) {
|
|
2765
|
+
this.fLibFaust = libfaust;
|
|
2766
2766
|
}
|
|
2767
2767
|
compile(name, code, args) {
|
|
2768
|
-
const fs = this.
|
|
2769
|
-
const success = this.
|
|
2768
|
+
const fs = this.fLibFaust.fs();
|
|
2769
|
+
const success = this.fLibFaust.generateAuxFiles(name, code, `-lang cmajor-hybrid -cn ${name} -o ${name}.cmajor`);
|
|
2770
2770
|
return success ? fs.readFile(`${name}.cmajor`, { encoding: "utf8" }) : "";
|
|
2771
2771
|
}
|
|
2772
2772
|
};
|