IpatchDLSWriter

IpatchDLSWriter — DLS writer object.

Synopsis




                    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);

Object Hierarchy


  GObject
   +----IpatchRiffParser
         +----IpatchDLSWriter

Description

For saving an IpatchDLS object to a DLS file.

Details

IpatchDLSWriter

typedef struct _IpatchDLSWriter IpatchDLSWriter;


IpatchDLSWriterClass

typedef struct {
  IpatchRiffParserClass parent_class;
} IpatchDLSWriterClass;


ipatch_dls_writer_new ()

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

ipatch_dls_writer_set_patch ()

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

ipatch_dls_writer_set_file ()

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

ipatch_dls_writer_save ()

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