Bennu Game Development

English Forums => Extensions => Topic started by: warrior_rockk on September 09, 2015, 01:19:16 PM

Title: mod_gme: Game Music Emulator
Post by: warrior_rockk on September 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:


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.

Title: Re:mod_gme: Game Music Emulator
Post by: warrior_rockk on September 15, 2015, 07:11:32 AM
Solved a bug on gme_set_tempo function


Title: Re:mod_gme: Game Music Emulator
Post by: cmunoz on September 16, 2015, 07:35:19 PM
SO cool! I've been dreaming of something like this. Thanks a million!!!!
Title: Re:mod_gme: Game Music Emulator
Post by: handsource-dyko on September 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) :)
Title: Re:mod_gme: Game Music Emulator
Post by: SplinterGU on September 19, 2015, 08:24:31 PM
cool!
Title: Re:mod_gme: Game Music Emulator
Post by: warrior_rockk on September 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.

Title: Re:mod_gme: Game Music Emulator
Post by: 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)
Title: Re:mod_gme: Game Music Emulator
Post by: warrior_rockk on December 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...
Title: Re:mod_gme: Game Music Emulator
Post by: 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)
Title: Re:mod_gme: Game Music Emulator
Post by: warrior_rockk on February 16, 2016, 08:28:02 AM
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/ (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...
Title: Re:mod_gme: Game Music Emulator
Post by: MikeDX on February 16, 2016, 12:31:15 PM
Excellent work warrior rock :) thanks for the zip!