LMMS
Loading...
Searching...
No Matches
gme.h File Reference

Go to the source code of this file.

Classes

struct  gme_info_t
struct  gme_equalizer_t

Macros

#define GME_VERSION   0x000602 /* 1 byte major, 1 byte minor, 1 byte patch-level */

Typedefs

typedef const char * gme_err_t
typedef struct Music_Emu Music_Emu
typedef struct gme_info_t gme_info_t
typedef struct gme_equalizer_t gme_equalizer_t
typedef const struct gme_type_t_gme_type_t
typedef gme_err_t(* gme_reader_t) (void *your_data, void *out, int count)
typedef void(* gme_user_cleanup_t) (void *user_data)

Enumerations

enum  { gme_info_only = -1 }

Functions

gme_err_t gme_open_file (const char path[], Music_Emu **out, int sample_rate)
int gme_track_count (Music_Emu const *)
gme_err_t gme_start_track (Music_Emu *, int index)
gme_err_t gme_play (Music_Emu *, int count, short out[])
void gme_delete (Music_Emu *)
void gme_set_fade (Music_Emu *, int start_msec)
int gme_track_ended (Music_Emu const *)
int gme_tell (Music_Emu const *)
int gme_tell_samples (Music_Emu const *)
gme_err_t gme_seek (Music_Emu *, int msec)
gme_err_t gme_seek_samples (Music_Emu *, int n)
const char * gme_warning (Music_Emu *)
gme_err_t gme_load_m3u (Music_Emu *, const char path[])
void gme_clear_playlist (Music_Emu *)
gme_err_t gme_track_info (Music_Emu const *, gme_info_t **out, int track)
void gme_free_info (gme_info_t *)
void gme_set_stereo_depth (Music_Emu *me, double depth)
void gme_ignore_silence (Music_Emu *, int ignore)
void gme_set_tempo (Music_Emu *, double tempo)
int gme_voice_count (Music_Emu const *)
const char * gme_voice_name (Music_Emu const *, int i)
void gme_mute_voice (Music_Emu *, int index, int mute)
void gme_mute_voices (Music_Emu *, int muting_mask)
void gme_equalizer (Music_Emu const *, gme_equalizer_t *out)
void gme_set_equalizer (Music_Emu *, gme_equalizer_t const *eq)
void gme_enable_accuracy (Music_Emu *, int enabled)
gme_type_t gme_type (Music_Emu const *)
gme_type_t constgme_type_list ()
const char * gme_type_system (gme_type_t)
int gme_type_multitrack (gme_type_t)
int gme_multi_channel (Music_Emu const *)
gme_err_t gme_open_data (void const *data, long size, Music_Emu **out, int sample_rate)
const char * gme_identify_header (void const *header)
gme_type_t gme_identify_extension (const char path_or_extension[])
const char * gme_type_extension (gme_type_t music_type)
gme_err_t gme_identify_file (const char path[], gme_type_t *type_out)
Music_Emugme_new_emu (gme_type_t, int sample_rate)
Music_Emugme_new_emu_multi_channel (gme_type_t, int sample_rate)
gme_err_t gme_load_file (Music_Emu *, const char path[])
gme_err_t gme_load_data (Music_Emu *, void const *data, long size)
gme_err_t gme_load_custom (Music_Emu *, gme_reader_t, long file_size, void *your_data)
gme_err_t gme_load_m3u_data (Music_Emu *, void const *data, long size)
void gme_set_user_data (Music_Emu *, void *new_user_data)
voidgme_user_data (Music_Emu const *)
void gme_set_user_cleanup (Music_Emu *, gme_user_cleanup_t func)

Variables

const gme_type_t gme_ay_type
const gme_type_t gme_gbs_type
const gme_type_t gme_gym_type
const gme_type_t gme_hes_type
const gme_type_t gme_kss_type
const gme_type_t gme_nsf_type
const gme_type_t gme_nsfe_type
const gme_type_t gme_sap_type
const gme_type_t gme_spc_type
const gme_type_t gme_vgm_type
const gme_type_t gme_vgz_type
const char *const gme_wrong_file_type

Macro Definition Documentation

◆ GME_VERSION

#define GME_VERSION   0x000602 /* 1 byte major, 1 byte minor, 1 byte patch-level */

Typedef Documentation

◆ gme_equalizer_t

typedef struct gme_equalizer_t gme_equalizer_t

◆ gme_err_t

typedef const char* gme_err_t

◆ gme_info_t

typedef struct gme_info_t gme_info_t

◆ gme_reader_t

typedef gme_err_t(* gme_reader_t) (void *your_data, void *out, int count)

◆ gme_type_t

typedef const struct gme_type_t_* gme_type_t

◆ gme_user_cleanup_t

typedef void(* gme_user_cleanup_t) (void *user_data)

◆ Music_Emu

typedef struct Music_Emu Music_Emu

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
gme_info_only 

Function Documentation

◆ gme_clear_playlist()

void gme_clear_playlist ( Music_Emu * me)

◆ gme_delete()

void gme_delete ( Music_Emu * me)

◆ gme_enable_accuracy()

void gme_enable_accuracy ( Music_Emu * me,
int enabled )

◆ gme_equalizer()

void gme_equalizer ( Music_Emu const * me,
gme_equalizer_t * out )

◆ gme_free_info()

void gme_free_info ( gme_info_t * info)

◆ gme_identify_extension()

gme_type_t gme_identify_extension ( const char path_or_extension[])

◆ gme_identify_file()

gme_err_t gme_identify_file ( const char path[],
gme_type_t * type_out )

◆ gme_identify_header()

const char * gme_identify_header ( void const * header)

◆ gme_ignore_silence()

void gme_ignore_silence ( Music_Emu * me,
int ignore )

◆ gme_load_custom()

gme_err_t gme_load_custom ( Music_Emu * me,
gme_reader_t func,
long file_size,
void * your_data )

◆ gme_load_data()

gme_err_t gme_load_data ( Music_Emu * me,
void const * data,
long size )

◆ gme_load_file()

gme_err_t gme_load_file ( Music_Emu * ,
const char path[] )

◆ gme_load_m3u()

gme_err_t gme_load_m3u ( Music_Emu * ,
const char path[] )

◆ gme_load_m3u_data()

gme_err_t gme_load_m3u_data ( Music_Emu * me,
void const * data,
long size )

◆ gme_multi_channel()

int gme_multi_channel ( Music_Emu const * me)

◆ gme_mute_voice()

void gme_mute_voice ( Music_Emu * me,
int index,
int mute )

◆ gme_mute_voices()

void gme_mute_voices ( Music_Emu * me,
int muting_mask )

◆ gme_new_emu()

Music_Emu * gme_new_emu ( gme_type_t type,
int sample_rate )

◆ gme_new_emu_multi_channel()

Music_Emu * gme_new_emu_multi_channel ( gme_type_t type,
int sample_rate )

◆ gme_open_data()

gme_err_t gme_open_data ( void const * data,
long size,
Music_Emu ** out,
int sample_rate )

◆ gme_open_file()

gme_err_t gme_open_file ( const char path[],
Music_Emu ** out,
int sample_rate )

◆ gme_play()

gme_err_t gme_play ( Music_Emu * ,
int count,
short out[] )

◆ gme_seek()

gme_err_t gme_seek ( Music_Emu * me,
int msec )

◆ gme_seek_samples()

gme_err_t gme_seek_samples ( Music_Emu * me,
int n )

◆ gme_set_equalizer()

void gme_set_equalizer ( Music_Emu * me,
gme_equalizer_t const * eq )

◆ gme_set_fade()

void gme_set_fade ( Music_Emu * me,
int start_msec )

◆ gme_set_stereo_depth()

void gme_set_stereo_depth ( Music_Emu * me,
double depth )

◆ gme_set_tempo()

void gme_set_tempo ( Music_Emu * me,
double tempo )

◆ gme_set_user_cleanup()

void gme_set_user_cleanup ( Music_Emu * me,
gme_user_cleanup_t func )

◆ gme_set_user_data()

void gme_set_user_data ( Music_Emu * me,
void * new_user_data )

◆ gme_start_track()

gme_err_t gme_start_track ( Music_Emu * me,
int index )

◆ gme_tell()

int gme_tell ( Music_Emu const * me)

◆ gme_tell_samples()

int gme_tell_samples ( Music_Emu const * me)

◆ gme_track_count()

int gme_track_count ( Music_Emu const * me)

◆ gme_track_ended()

int gme_track_ended ( Music_Emu const * me)

◆ gme_track_info()

gme_err_t gme_track_info ( Music_Emu const * me,
gme_info_t ** out,
int track )

◆ gme_type()

gme_type_t gme_type ( Music_Emu const * me)

◆ gme_type_extension()

const char * gme_type_extension ( gme_type_t music_type)

Get typical file extension for a given music type. This is not a replacement for a file content identification library (but see gme_identify_header).

Since
0.6.2

◆ gme_type_list()

gme_type_t const * gme_type_list ( )

◆ gme_type_multitrack()

int gme_type_multitrack ( gme_type_t t)

◆ gme_type_system()

const char * gme_type_system ( gme_type_t type)

◆ gme_user_data()

void * gme_user_data ( Music_Emu const * me)

◆ gme_voice_count()

int gme_voice_count ( Music_Emu const * me)

◆ gme_voice_name()

const char * gme_voice_name ( Music_Emu const * me,
int i )

◆ gme_warning()

const char * gme_warning ( Music_Emu * me)

Variable Documentation

◆ gme_ay_type

const gme_type_t gme_ay_type
extern

◆ gme_gbs_type

const gme_type_t gme_gbs_type

◆ gme_gym_type

const gme_type_t gme_gym_type

◆ gme_hes_type

const gme_type_t gme_hes_type

◆ gme_kss_type

const gme_type_t gme_kss_type

◆ gme_nsf_type

const gme_type_t gme_nsf_type

◆ gme_nsfe_type

const gme_type_t gme_nsfe_type

◆ gme_sap_type

const gme_type_t gme_sap_type

◆ gme_spc_type

const gme_type_t gme_spc_type

◆ gme_vgm_type

const gme_type_t gme_vgm_type

◆ gme_vgz_type

const gme_type_t gme_vgz_type

◆ gme_wrong_file_type

const char* const gme_wrong_file_type
extern