Added fade length to C API
parent
52c947db10
commit
54349ba1f2
|
@ -312,7 +312,7 @@ void gme_set_user_cleanup(Music_Emu* gme, gme_user_cleanup_t func ){ gme->s
|
|||
|
||||
gme_err_t gme_start_track ( Music_Emu* gme, int index ) { return gme->start_track( index ); }
|
||||
gme_err_t gme_play ( Music_Emu* gme, int n, short p [] ) { return gme->play( n, p ); }
|
||||
void gme_set_fade ( Music_Emu* gme, int start_msec ) { gme->set_fade( start_msec ); }
|
||||
void gme_set_fade ( Music_Emu* gme, int start_msec, int length_msec ) { gme->set_fade( start_msec, length_msec ); }
|
||||
gme_bool gme_track_ended ( Music_Emu const* gme ) { return gme->track_ended(); }
|
||||
int gme_tell ( Music_Emu const* gme ) { return gme->tell(); }
|
||||
gme_err_t gme_seek ( Music_Emu* gme, int msec ) { return gme->seek( msec ); }
|
||||
|
|
|
@ -44,7 +44,7 @@ void gme_delete( gme_t* );
|
|||
|
||||
/* Sets time to start fading track out. Once fade ends track_ended() returns true.
|
||||
Fade time can be changed while track is playing. */
|
||||
void gme_set_fade( gme_t*, int start_msec );
|
||||
void gme_set_fade( gme_t*, int start_msec, int length_msec );
|
||||
|
||||
/* True if a track has reached its end */
|
||||
gme_bool gme_track_ended( const gme_t* );
|
||||
|
|
Loading…
Reference in New Issue