fmsynth_new method
\addtogroup libfmsynthLifetime Lifetime / /* @{ / /* \brief Allocate a new instance of an FM synth.
Must be freed later with \ref fmsynth_free.
@param sample_rate Sample rate in Hz for the synthesizer. Cannot be changed once initialized. @param max_voices The maximum number of simultaneous voices (polyphony) the synth can support. Cannot be changed once initialized.
@returns Newly allocated instance if successful, otherwise NULL.
Implementation
ffi.Pointer<fmsynth> fmsynth_new(
double sample_rate,
int max_voices,
) {
return _fmsynth_new(
sample_rate,
max_voices,
);
}