Method

AgsAudioMidiSmfUtilget_header

since: 6.0.0

Declaration [src]

guint
ags_midi_smf_util_get_header (
  AgsMidiSmfUtil* midi_smf_util,
  guchar* buffer,
  gint* chunk_length,
  gint* format,
  gint* track_count,
  gint* division
)

Description [src]

Gets the midi header.

Available since: 6.0.0

Parameters

buffer

Type: guchar*

The MIDI buffer.

The data is owned by the caller of the method.
chunk_length

Type: gint*

The return location of header chunk length.

The argument will be set by the function.
format

Type: gint*

The return location of format either 0, 1 or 2.

The argument will be set by the function.
track_count

Type: gint*

The return location of the number of tracks.

The argument will be set by the function.
division

Type: gint*

The return location of timing division.

The argument will be set by the function.

Return value

Type: guint

The number of bytes read.