mod_gme: Game Music Emulator

Started by warrior_rockk, September 09, 2015, 01:19:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

warrior_rockk

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:


Quote
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.


warrior_rockk

Solved a bug on gme_set_tempo function



cmunoz

SO cool! I've been dreaming of something like this. Thanks a million!!!!

handsource-dyko

He, that's very interessting! Back in the fenix day's I've always wanted something like this. If I have some time I'll check it out. I know I'm not currently active with programming since I've got a new job last november (so little time for hobbies) :)

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

warrior_rockk

Added function to seek and obtain song position, a function to play concrete track on multitrack song files, optional parameter on play_song and play_track for the play mode (GME_PLAY_ONCE or GME_PLAY_LOOP), and fixed the MSX example file.


FreeYourMind

can you port the module to gcw zero ? (i can try to port it if you dont have time)

warrior_rockk

I don't know which dependencies are necessary to compile on to gcw zero, but, I can try find out...

MikeDX

Will you be releasing the source to the DLL? I have a semi working version for div which I should really complete. I assume it uses game music emu which is LGPL

Website: http://www.slack.net/~ant/

(I am guessing this because the dll has references to the same music source files as those contained in it)

warrior_rockk

Quote from: MikeDX on February 15, 2016, 09:49:18 PM
Will you be releasing the source to the DLL? I have a semi working version for div which I should really complete. I assume it uses game music emu which is LGPL

Website: http://www.slack.net/~ant/

(I am guessing this because the dll has references to the same music source files as those contained in it)


Ouch! I forgot to release the sources. And yes, it is based on gme library.


Quote from: FreeYourMind on December 03, 2015, 09:26:56 PM
can you port the module to gcw zero ? (i can try to port it if you dont have time)


Sorry, I totally forgot that you had request the sources...

MikeDX

Excellent work warrior rock :) thanks for the zip!