From 50a876906e02944cc1837248780378c9f7a88fe8 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 18 Oct 2019 10:22:35 +0300 Subject: [PATCH] - added declarations missing from update to GME 0.6.2 --- libraries/game-music-emu/gme/gme.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libraries/game-music-emu/gme/gme.h b/libraries/game-music-emu/gme/gme.h index 80c6ce846..36c098343 100644 --- a/libraries/game-music-emu/gme/gme.h +++ b/libraries/game-music-emu/gme/gme.h @@ -41,6 +41,25 @@ void gme_delete( Music_Emu* ); Fade time can be changed while track is playing. */ void gme_set_fade( Music_Emu*, int start_msec ); +/** + * If do_autoload_limit is nonzero, then automatically load track length + * metadata (if present) and terminate playback once the track length has been + * reached. Otherwise playback will continue for an arbitrary period of time + * until a prolonged period of silence is detected. + * + * Not all individual emulators support this setting. + * + * By default, playback limits are loaded and applied. + * + * @since 0.6.2 + */ +void gme_set_autoload_playback_limit( Music_Emu *, int do_autoload_limit ); + +/** See gme_set_autoload_playback_limit. + * @since 0.6.2 + */ +int gme_autoload_playback_limit( Music_Emu const* ); + /* True if a track has reached its end */ int gme_track_ended( Music_Emu const* );