IpatchSF2Reader

IpatchSF2Reader — SoundFont file reader

Stability Level

Stable, unless otherwise indicated

Functions

Object Hierarchy

    GObject
    ╰── IpatchRiff
        ╰── IpatchSF2Reader

Description

Reads a SoundFont file and loads it into a object tree (IpatchSF2).

Functions

ipatch_sf2_reader_new ()

IpatchSF2Reader *
ipatch_sf2_reader_new (IpatchFileHandle *handle);

Create a new SoundFont file reader

Parameters

handle

SoundFont 2 file handle to parse or NULL to set later

 

Returns

The new SoundFont file reader


ipatch_sf2_reader_set_file_handle ()

void
ipatch_sf2_reader_set_file_handle (IpatchSF2Reader *reader,
                                   IpatchFileHandle *handle);

Set the SoundFont file handle of a SoundFont reader. A convenience function, since ipatch_riff_set_file_handle() could also be used, albeit without stricter type casting.

Parameters

reader

SoundFont reader object

 

handle

SoundFont 2 file handle

 

ipatch_sf2_reader_load ()

IpatchSF2 *
ipatch_sf2_reader_load (IpatchSF2Reader *reader,
                        GError **err);

Load an SF2 file.

Parameters

reader

SF2 reader object

 

err

Location to store error info or NULL

 

Returns

New SF2 object with refcount of 1.

[transfer full]