Bennu Game Development

English Forums => Extensions => Mensaje iniciado por: warrior_rockk en Septiembre 09, 2015, 01:19:16 pm

Título: mod_gme: Game Music Emulator
Publicado por: warrior_rockk en Septiembre 09, 2015, 01:19:16 pm
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:


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

Título: Re:mod_gme: Game Music Emulator
Publicado por: warrior_rockk en Septiembre 15, 2015, 07:11:32 am
Solved a bug on gme_set_tempo function


Título: Re:mod_gme: Game Music Emulator
Publicado por: cmunoz en Septiembre 16, 2015, 07:35:19 pm
SO cool! I've been dreaming of something like this. Thanks a million!!!!
Título: Re:mod_gme: Game Music Emulator
Publicado por: handsource-dyko en Septiembre 18, 2015, 07:14:39 pm
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) :)
Título: Re:mod_gme: Game Music Emulator
Publicado por: SplinterGU en Septiembre 19, 2015, 08:24:31 pm
cool!
Título: Re:mod_gme: Game Music Emulator
Publicado por: warrior_rockk en Septiembre 26, 2015, 06:36:03 pm
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.

Título: Re:mod_gme: Game Music Emulator
Publicado por: FreeYourMind en Diciembre 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)
Título: Re:mod_gme: Game Music Emulator
Publicado por: warrior_rockk en Diciembre 21, 2015, 07:09:01 pm
I don't know which dependencies are necessary to compile on to gcw zero, but, I can try find out...
Título: Re:mod_gme: Game Music Emulator
Publicado por: MikeDX en Febrero 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)
Título: Re:mod_gme: Game Music Emulator
Publicado por: warrior_rockk en Febrero 16, 2016, 08:28:02 am
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/ (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.


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...
Título: Re:mod_gme: Game Music Emulator
Publicado por: MikeDX en Febrero 16, 2016, 12:31:15 pm
Excellent work warrior rock :) thanks for the zip!