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:
parent
8f99c954ad
commit
8b2f4fc823
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
|||
ver 0.16.2 (2011/??/??)
|
||||
* decoder:
|
||||
- tremor: fix configure test
|
||||
- gme: detect end of song
|
||||
|
||||
|
||||
ver 0.16.1 (2011/01/09)
|
||||
|
|
|
@ -153,6 +153,9 @@ gme_file_decode(struct decoder *decoder, const char *path_fs)
|
|||
if((gme_err = gme_start_track(emu, song_num)) != NULL)
|
||||
g_warning("%s", gme_err);
|
||||
|
||||
if(ti->length > 0)
|
||||
gme_set_fade(emu, ti->length);
|
||||
|
||||
/* play */
|
||||
do {
|
||||
gme_err = gme_play(emu, GME_BUFFER_SAMPLES, buf);
|
||||
|
|
Loading…
Reference in New Issue