fmsynth_preset_load method
\brief Load preset from memory.
The current preset state of the synth is stored to memory. The preset state is portable across platforms and can be stored to disk safely.
@param fm Handle to an FM synth interface. @param metadata Pointer to metadata. Can be NULL if reading metadata is not necessary. @param buffer Pointer to buffer where preset can be read. @param size Size of buffer. Must be at least \ref fmsynth_preset_size.
@returns Error code.
Implementation
int fmsynth_preset_load(
ffi.Pointer<fmsynth> fm,
ffi.Pointer<fmsynth_preset_metadata> metadata,
ffi.Pointer<ffi.Void> buffer,
int size,
) {
return _fmsynth_preset_load(
fm,
metadata,
buffer,
size,
);
}