Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soundfiles should be optional in interface LooseFaustDspFactory #8

Open
recri opened this issue May 23, 2024 · 2 comments
Open

soundfiles should be optional in interface LooseFaustDspFactory #8

recri opened this issue May 23, 2024 · 2 comments

Comments

@recri
Copy link

recri commented May 23, 2024

/**
 * The Factory structure.
 */
export interface LooseFaustDspFactory {
	/** a "pointer" (as an integer) on the internal C++ factory */
	cfactory?: number;
	/** the WASM code as a binary array */
	code?: Uint8Array;
	/** the compule WASM module */
	module: WebAssembly.Module;
	/** the compiled DSP JSON description */
	json: string;
	/** whether the factory is a polyphonic one or not */
	poly?: boolean;
	/** a unique identifier */
	shaKey?: string;
	/** a map of transferable audio buffers for the `soundfile` function */
	soundfiles: Record<string, (AudioData | null)>;
}

soundfiles should be optional rather than required, most dsp's don't need them.

@sletz
Copy link
Member

sletz commented May 24, 2024

Can you prepare a PR ?

@recri
Copy link
Author

recri commented May 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants