Constructor

AgsAudioSF2Loadernew

since: 3.0.0

Declaration [src]

AgsSF2Loader*
ags_sf2_loader_new (
  AgsAudio* audio,
  gchar* filename,
  gchar* preset,
  gchar* instrument
)

Description [src]

Create a new instance of AgsSF2Loader.

Available since: 3.0.0

Parameters

audio

Type: AgsAudio

The AgsAudio.

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

Type: gchar*

The filename.

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.

Return value

Type: AgsSF2Loader

The new AgsSF2Loader.

The caller of the function takes ownership of the data, and is responsible for freeing it.