Module for play videogame music in our respective formats.
The current systems / formats that allowed:
AY ZX Spectrum/Amstrad CPC
GBS Nintendo Game Boy
GYM Sega Genesis/Mega Drive
HES NEC TurboGrafx-16/PC Engine
KSS MSX Home Computer/other Z80 systems (doesn't support FM sound)
NSF/NSFE Nintendo NES/Famicom (with VRC 6, Namco 106, and FME-7 sound)
SAP Atari systems using POKEY sound chip
SPC Super Nintendo/Super Famicom
VGM/VGZ Sega Master System/Mark III, Sega Genesis/Mega Drive,BBC Micro
This is the list of functions:
int gme_load_song(string filename)
int gme_play_song()
int gme_stop_song()
int gme_pause_song()
int gme_resume_song()
int gme_voice_count()
int gme_mute_voice(int voice)
int gme_unmute_voice(int voice)
int gme_set_tempo(float tempo)
int gme_song_ended()
string gme_get_song_info(int info_type)
double gme_get_song_length()
double gme_get_intro_length()
double gme_get_loop_length()
double gme_get_song_pos()
int gme_fade_off(double duration_ms)
int gme_is_fading()
I attached the module and example of use.