I'm writing a C program that wraps Game_Music_Emu to produce wave files that I can later encode with oggenc or LAME, sort of a more fleshed-out version of demo.c from the source distribution. But I want to specify the duration of the fade rather than using the default of 8 seconds.
From gme.h:
Code: Select all
void gme_set_fade( Music_Emu*, int start_msec );
Code: Select all
BLARGG_EXPORT void gme_set_fade ( Music_Emu* me, int start_msec ) { me->set_fade( start_msec ); }
Code: Select all
// Set start time and length of track fade out. Once fade ends track_ended() returns
// true. Fade time can be changed while track is playing.
void set_fade( long start_msec, long length_msec = 8000 );
Code: Select all
BLARGG_EXPORT void gme_set_fade_ex ( Music_Emu* me, int start_msec, int length_msec ) { me->set_fade( start_msec, length_msec ); }