Constructor
AgsAudioOpenSF2Instrumentnew
since: 3.0.0
Declaration [src]
AgsOpenSF2Instrument*
ags_open_sf2_instrument_new (
AgsAudio* audio,
AgsIpatch* ipatch,
gchar* filename,
gchar* preset,
gchar* instrument,
guint start_pad
)
Parameters
audio-
Type:
AgsAudioThe
AgsAudio.The data is owned by the caller of the function. ipatch-
Type:
AgsIpatchThe
AgsIpatchorNULL.The data is owned by the caller of the function. filename-
Type:
gchar*The Soundfont2 file.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. preset-
Type:
gchar*The preset.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. instrument-
Type:
gchar*The instrument.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. start_pad-
Type:
guintThe pad start.
Return value
Type: AgsOpenSF2Instrument
An new AgsOpenSF2Instrument.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |