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
)

Description [src]

Creates an AgsOpenSF2Sample.

Available since: 3.0.0

Parameters

channel

Type: AgsChannel

The AgsChannel.

The data is owned by the caller of the function.
ipatch_sample

Type: AgsIpatchSample

The AgsIpatchSample or NULL.

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: guint

The 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.