| libInstPatch Reference Manual |
|---|
IpatchDLSWriterIpatchDLSWriter — DLS writer object. |
IpatchDLSWriter;
IpatchDLSWriterClass;
IpatchDLSWriter* ipatch_dls_writer_new (IpatchDLSFile *file,
IpatchDLS2 *dls);
void ipatch_dls_writer_set_patch (IpatchDLSWriter *writer,
IpatchDLS2 *dls);
void ipatch_dls_writer_set_file (IpatchDLSWriter *writer,
IpatchDLSFile *file);
gboolean ipatch_dls_writer_save (IpatchDLSWriter *writer,
GError **err);
IpatchDLSWriter* ipatch_dls_writer_new (IpatchDLSFile *file, IpatchDLS2 *dls);
Create a new DLS file writer.
file : |
DLS file object to save to or NULL to set later
|
dls : |
DLS object to save or NULL to set later
|
| Returns : | The new DLS writer |
void ipatch_dls_writer_set_patch (IpatchDLSWriter *writer, IpatchDLS2 *dls);
Set the DLS patch object to save with a DLS writer.
writer : |
DLS writer object |
dls : |
DLS patch to save |
void ipatch_dls_writer_set_file (IpatchDLSWriter *writer, IpatchDLSFile *file);
Set the DLS file object of a DLS writer. A convenience function, since ipatch_riff_set_file could also be used, albeit without stricter type casting.
writer : |
DLS writer object |
file : |
DLS file object |
gboolean ipatch_dls_writer_save (IpatchDLSWriter *writer, GError **err);
Write a DLS or GigaSampler object to a file.
writer : |
DLS writer object |
err : |
Location to store error info or NULL
|
| Returns : | TRUE on success, FALSE on error
|
| << IpatchDLSReader | IpatchDLS2Inst >> |