| libinstpatch Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
IpatchDLSWriter;
IpatchDLSWriter * ipatch_dls_writer_new (IpatchFileHandle *handle,
IpatchDLS2 *dls);
void ipatch_dls_writer_set_patch (IpatchDLSWriter *writer,
IpatchDLS2 *dls);
void ipatch_dls_writer_set_file_handle (IpatchDLSWriter *writer,
IpatchFileHandle *handle);
gboolean ipatch_dls_writer_save (IpatchDLSWriter *writer,
GError **err);
IpatchDLSWriter * ipatch_dls_writer_new (IpatchFileHandle *handle, IpatchDLS2 *dls);
Create a new DLS file writer.
|
DLS file handle to save to or NULL to set later, taken over by
writer object and will be closed on finalize.
|
|
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.
|
DLS writer object |
|
DLS patch to save |
void ipatch_dls_writer_set_file_handle (IpatchDLSWriter *writer, IpatchFileHandle *handle);
Set the DLS file handle of a DLS writer. A convenience function, since
ipatch_riff_set_file_handle() could also be used.
|
DLS writer object |
|
DLS file handle |
gboolean ipatch_dls_writer_save (IpatchDLSWriter *writer, GError **err);
Write a DLS or GigaSampler object to a file.
|
DLS writer object |
|
Location to store error info or NULL
|
Returns : |
TRUE on success, FALSE on error
|