SysTutorials

Linux Manual Pages › Section 3

wildmidi_getinfo(3)

WildMidi_GetInfo – get information on a midi

Library

libWildMidi

Synopsis

#include <wildmidi_lib.h>

struct _WM_Info *WildMidi_GetInfo (midi *handle);

Description

Obtains information allowing you to determine song position, current options, and any copyright information.

handle
The identifier obtained from opening a midi file with WildMidi_Open(3) or WildMidi_OpenBuffer(3)

Return Value

On error returns NULL with an error message displayed to stderr.

Otherwise returns a pointer to a struct containing the information.

struct _WM_Info {
 char *copyright;
 unsigned long int current_sample;
 unsigned long int approx_total_samples;
 unsigned long int total_midi_time;
 unsigned short int mixer_options;
 unsigned long int total_midi_time;
};
copyright
A pointer to a