LMMS
Loading...
Searching...
No Matches
gme.cpp File Reference
#include "Music_Emu.h"
#include "gme_types.h"
#include "Effects_Buffer.h"
#include "blargg_endian.h"
#include <string.h>
#include <ctype.h>
#include "blargg_source.h"

Classes

struct  gme_info_t_

Macros

#define COPY(name)

Functions

BLARGG_EXPORT gme_type_t constgme_type_list ()
BLARGG_EXPORT const char * gme_identify_header (void const *header)
static void to_uppercase (const char *in, int len, char *out)
BLARGG_EXPORT gme_type_t gme_identify_extension (const char *extension_)
BLARGG_EXPORT const char * gme_type_extension (gme_type_t music_type)
BLARGG_EXPORT gme_err_t gme_identify_file (const char *path, gme_type_t *type_out)
BLARGG_EXPORT gme_err_t gme_open_data (void const *data, long size, Music_Emu **out, int sample_rate)
BLARGG_EXPORT gme_err_t gme_open_file (const char *path, Music_Emu **out, int sample_rate)
Music_Emugme_internal_new_emu_ (gme_type_t type, int rate, bool multi_channel)
BLARGG_EXPORT Music_Emugme_new_emu (gme_type_t type, int rate)
BLARGG_EXPORT Music_Emugme_new_emu_multi_channel (gme_type_t type, int rate)
BLARGG_EXPORT gme_err_t gme_load_file (Music_Emu *me, const char *path)
BLARGG_EXPORT gme_err_t gme_load_data (Music_Emu *me, void const *data, long size)
BLARGG_EXPORT gme_err_t gme_load_custom (Music_Emu *me, gme_reader_t func, long size, void *data)
BLARGG_EXPORT void gme_delete (Music_Emu *me)
BLARGG_EXPORT gme_type_t gme_type (Music_Emu const *me)
BLARGG_EXPORT const char * gme_warning (Music_Emu *me)
BLARGG_EXPORT int gme_track_count (Music_Emu const *me)
BLARGG_EXPORT gme_err_t gme_track_info (Music_Emu const *me, gme_info_t **out, int track)
BLARGG_EXPORT void gme_free_info (gme_info_t *info)
BLARGG_EXPORT void gme_set_stereo_depth (Music_Emu *me, double depth)
BLARGG_EXPORT voidgme_user_data (Music_Emu const *me)
BLARGG_EXPORT void gme_set_user_data (Music_Emu *me, void *new_user_data)
BLARGG_EXPORT void gme_set_user_cleanup (Music_Emu *me, gme_user_cleanup_t func)
BLARGG_EXPORT gme_err_t gme_start_track (Music_Emu *me, int index)
BLARGG_EXPORT gme_err_t gme_play (Music_Emu *me, int n, short *p)
BLARGG_EXPORT void gme_set_fade (Music_Emu *me, int start_msec)
BLARGG_EXPORT int gme_track_ended (Music_Emu const *me)
BLARGG_EXPORT int gme_tell (Music_Emu const *me)
BLARGG_EXPORT int gme_tell_samples (Music_Emu const *me)
BLARGG_EXPORT gme_err_t gme_seek (Music_Emu *me, int msec)
BLARGG_EXPORT gme_err_t gme_seek_samples (Music_Emu *me, int n)
BLARGG_EXPORT int gme_voice_count (Music_Emu const *me)
BLARGG_EXPORT void gme_ignore_silence (Music_Emu *me, int disable)
BLARGG_EXPORT void gme_set_tempo (Music_Emu *me, double t)
BLARGG_EXPORT void gme_mute_voice (Music_Emu *me, int index, int mute)
BLARGG_EXPORT void gme_mute_voices (Music_Emu *me, int mask)
BLARGG_EXPORT void gme_enable_accuracy (Music_Emu *me, int enabled)
BLARGG_EXPORT void gme_clear_playlist (Music_Emu *me)
BLARGG_EXPORT int gme_type_multitrack (gme_type_t t)
BLARGG_EXPORT int gme_multi_channel (Music_Emu const *me)
BLARGG_EXPORT void gme_set_equalizer (Music_Emu *me, gme_equalizer_t const *eq)
BLARGG_EXPORT void gme_equalizer (Music_Emu const *me, gme_equalizer_t *out)
BLARGG_EXPORT const char * gme_voice_name (Music_Emu const *me, int i)
BLARGG_EXPORT const char * gme_type_system (gme_type_t type)

Macro Definition Documentation

◆ COPY

#define COPY ( name)
Value:
info->name = info->info.name;
struct backing_store_struct * info
Definition jmemsys.h:183

Function Documentation

◆ gme_clear_playlist()

BLARGG_EXPORT void gme_clear_playlist ( Music_Emu * me)

◆ gme_delete()

BLARGG_EXPORT void gme_delete ( Music_Emu * me)

◆ gme_enable_accuracy()

BLARGG_EXPORT void gme_enable_accuracy ( Music_Emu * me,
int enabled )

◆ gme_equalizer()

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

◆ gme_free_info()

BLARGG_EXPORT void gme_free_info ( gme_info_t * info)

◆ gme_identify_extension()

BLARGG_EXPORT gme_type_t gme_identify_extension ( const char * extension_)

◆ gme_identify_file()

BLARGG_EXPORT gme_err_t gme_identify_file ( const char * path,
gme_type_t * type_out )

◆ gme_identify_header()

BLARGG_EXPORT const char * gme_identify_header ( void const * header)

◆ gme_ignore_silence()

BLARGG_EXPORT void gme_ignore_silence ( Music_Emu * me,
int disable )

◆ gme_internal_new_emu_()

Music_Emu * gme_internal_new_emu_ ( gme_type_t type,
int rate,
bool multi_channel )

◆ gme_load_custom()

BLARGG_EXPORT gme_err_t gme_load_custom ( Music_Emu * me,
gme_reader_t func,
long size,
void * data )

◆ gme_load_data()

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

◆ gme_load_file()

BLARGG_EXPORT gme_err_t gme_load_file ( Music_Emu * me,
const char * path )

◆ gme_multi_channel()

BLARGG_EXPORT int gme_multi_channel ( Music_Emu const * me)

◆ gme_mute_voice()

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

◆ gme_mute_voices()

BLARGG_EXPORT void gme_mute_voices ( Music_Emu * me,
int mask )

◆ gme_new_emu()

BLARGG_EXPORT Music_Emu * gme_new_emu ( gme_type_t type,
int rate )

◆ gme_new_emu_multi_channel()

BLARGG_EXPORT Music_Emu * gme_new_emu_multi_channel ( gme_type_t type,
int rate )

◆ gme_open_data()

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

◆ gme_open_file()

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

◆ gme_play()

BLARGG_EXPORT gme_err_t gme_play ( Music_Emu * me,
int n,
short * p )

◆ gme_seek()

BLARGG_EXPORT gme_err_t gme_seek ( Music_Emu * me,
int msec )

◆ gme_seek_samples()

BLARGG_EXPORT gme_err_t gme_seek_samples ( Music_Emu * me,
int n )

◆ gme_set_equalizer()

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

◆ gme_set_fade()

BLARGG_EXPORT void gme_set_fade ( Music_Emu * me,
int start_msec )

◆ gme_set_stereo_depth()

BLARGG_EXPORT void gme_set_stereo_depth ( Music_Emu * me,
double depth )

◆ gme_set_tempo()

BLARGG_EXPORT void gme_set_tempo ( Music_Emu * me,
double t )

◆ gme_set_user_cleanup()

BLARGG_EXPORT void gme_set_user_cleanup ( Music_Emu * me,
gme_user_cleanup_t func )

◆ gme_set_user_data()

BLARGG_EXPORT void gme_set_user_data ( Music_Emu * me,
void * new_user_data )

◆ gme_start_track()

BLARGG_EXPORT gme_err_t gme_start_track ( Music_Emu * me,
int index )

◆ gme_tell()

BLARGG_EXPORT int gme_tell ( Music_Emu const * me)

◆ gme_tell_samples()

BLARGG_EXPORT int gme_tell_samples ( Music_Emu const * me)

◆ gme_track_count()

BLARGG_EXPORT int gme_track_count ( Music_Emu const * me)

◆ gme_track_ended()

BLARGG_EXPORT int gme_track_ended ( Music_Emu const * me)

◆ gme_track_info()

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

◆ gme_type()

◆ gme_type_extension()

BLARGG_EXPORT 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()

BLARGG_EXPORT gme_type_t const * gme_type_list ( )

◆ gme_type_multitrack()

BLARGG_EXPORT int gme_type_multitrack ( gme_type_t t)

◆ gme_type_system()

BLARGG_EXPORT const char * gme_type_system ( gme_type_t type)

◆ gme_user_data()

BLARGG_EXPORT void * gme_user_data ( Music_Emu const * me)

◆ gme_voice_count()

BLARGG_EXPORT int gme_voice_count ( Music_Emu const * me)

◆ gme_voice_name()

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

◆ gme_warning()

BLARGG_EXPORT const char * gme_warning ( Music_Emu * me)

◆ to_uppercase()

void to_uppercase ( const char * in,
int len,
char * out )
static