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
)

Description [src]

Creates an AgsOpenSF2Instrument.

Available since: 3.0.0

Parameters

audio

Type: AgsAudio

The AgsAudio.

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

Type: AgsIpatch

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

Type: guint

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