Constructor
AgsAudioOpenSf2Samplenew
since: 3.0.0
Declaration [src]
AgsOpenSf2Sample*
ags_open_sf2_sample_new (
AgsChannel* channel,
AgsIpatchSample* ipatch_sample,
gchar* filename,
gchar* preset,
gchar* instrument,
gchar* sample,
guint audio_channel
)
Parameters
channel-
Type:
AgsChannelThe
AgsChannel.The data is owned by the caller of the function. ipatch_sample-
Type:
AgsIpatchSampleThe
AgsIpatchSampleorNULL.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. sample-
Type:
gchar*The sample.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. audio_channel-
Type:
guintThe audio channel.
Return value
Type: AgsOpenSf2Sample
An new AgsOpenSf2Sample.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |