aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Miller <mcfiredrill@gmail.com>2011-02-03 00:25:35 +0100
committerMax Kellermann <max@duempel.org>2011-02-03 00:25:35 +0100
commit8b2f4fc823496c9e473616487e6dc572d77df346 (patch)
tree3d9004194a3bd3439e1d4fdd103a99ee47a2bf12
parent8f99c954ad89ad3eef5b4e013264c5cb8c6c97e6 (diff)
downloadmpd-8b2f4fc823496c9e473616487e6dc572d77df346.tar.gz
mpd-8b2f4fc823496c9e473616487e6dc572d77df346.tar.xz
mpd-8b2f4fc823496c9e473616487e6dc572d77df346.zip
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.
-rw-r--r--NEWS1
-rw-r--r--src/decoder/gme_decoder_plugin.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index fb394edfe..994bdf407 100644
--- a/NEWS
+++ b/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)
diff --git a/src/decoder/gme_decoder_plugin.c b/src/decoder/gme_decoder_plugin.c
index 4a5220a3f..e14a52d32 100644
--- a/src/decoder/gme_decoder_plugin.c
+++ b/src/decoder/gme_decoder_plugin.c
@@ -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);