@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.
@@ -1007,8 +1007,8 @@ export interface IFaustCmajor {
1007
1007
  compile(name: string, code: string, args: string): string;
1008
1008
  }
1009
1009
  export declare class FaustCmajor implements IFaustCmajor {
1010
- private compiler;
1011
- constructor(compiler: FaustCompiler);
1010
+ private fLibFaust;
1011
+ constructor(libfaust: LibFaust);
1012
1012
  compile(name: string, code: string, args: string): string;
1013
1013
  }
1014
1014
  export interface WavEncoderOptions {
@@ -8779,12 +8779,12 @@ this.fAudioMixingHalf: ${this.fAudioMixingHalf}`;
8779
8779
 
8780
8780
  // src/FaustCmajor.ts
8781
8781
  var FaustCmajor = class {
8782
- constructor(compiler) {
8783
- this.compiler = compiler;
8782
+ constructor(libfaust) {
8783
+ this.fLibFaust = libfaust;
8784
8784
  }
8785
8785
  compile(name, code, args) {
8786
- const fs = this.compiler.fs();
8787
- const success = this.compiler.generateAuxFiles(name, code, `-lang cmajor-hybrid -cn ${name} -o ${name}.cmajor`);
8786
+ const fs = this.fLibFaust.fs();
8787
+ const success = this.fLibFaust.generateAuxFiles(name, code, `-lang cmajor-hybrid -cn ${name} -o ${name}.cmajor`);
8788
8788
  return success ? fs.readFile(`${name}.cmajor`, { encoding: "utf8" }) : "";
8789
8789
  }
8790
8790
  };