Set fadeout in gme_decoder_plugin. Due to the nature of the gme library,

this needs to be done for the end of songs to be detected.
This commit is contained in:
Tony Miller 2011-02-03 00:25:35 +01:00 committed by Max Kellermann
parent 8f99c954ad
commit 8b2f4fc823
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
ver 0.16.2 (2011/??/??) ver 0.16.2 (2011/??/??)
* decoder: * decoder:
- tremor: fix configure test - tremor: fix configure test
- gme: detect end of song
ver 0.16.1 (2011/01/09) ver 0.16.1 (2011/01/09)

View File

@ -153,6 +153,9 @@ gme_file_decode(struct decoder *decoder, const char *path_fs)
if((gme_err = gme_start_track(emu, song_num)) != NULL) if((gme_err = gme_start_track(emu, song_num)) != NULL)
g_warning("%s", gme_err); g_warning("%s", gme_err);
if(ti->length > 0)
gme_set_fade(emu, ti->length);
/* play */ /* play */
do { do {
gme_err = gme_play(emu, GME_BUFFER_SAMPLES, buf); gme_err = gme_play(emu, GME_BUFFER_SAMPLES, buf);