fmsynth_preset_load method

int fmsynth_preset_load(
  1. Pointer<fmsynth> fm,
  2. Pointer<fmsynth_preset_metadata> metadata,
  3. Pointer<Void> buffer,
  4. int size,
)

\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,
  );
}