Subject: FRED

From: asle
Date: Fri Apr 28 23:27:58 2006

To: UADE-User-discussion
the following song is played for 35 seconds only while it should last about 3 minutes :
http://www.exotica.org.uk/tunes/archive/FRED-FredEditor/FRED.Hybris_Light.lha
Any clue ?.

Regards,
Sylvain

---

From: amadeus
Date: Sat Apr 29 09:03:19 2006

To: UADE-User-discussion
[quote:8d822ec530="asle"]the following song is played for 35 seconds only while it should last about 3 minutes :
http://www.exotica.org.uk/tunes/archive/FRED-FredEditor/FRED.Hybris_Light.lha
Any clue ?.
[/quote:8d822ec530]

It is because at 35 seconds the first pattern is played again, and that trickers the song end routine.

The song end detection problem is really complicated bacause, how can you tell a song is started over, when you only have the data that already have been played?

Understanding the pattern table would for all formats would of course solve the problem =)

---

From: asle
Date: Sat Apr 29 09:49:28 2006

To: UADE-User-discussion
ok, forced -n and -t 200.

---

From: shd
Date: Sat Apr 29 10:51:44 2006

To: UADE-User-discussion
[quote:70beca48b1="asle"]ok, forced -n and -t 200.[/quote:70beca48b1]

This is a known bug caused by my bad song end detection heuristics in fred. Maybe we should disable song end that from eagleplayer.conf. I'll do a temporary work-around into the CVS. Song end won't be detected for any FRED songs from now on, until we fix the detection logic. I changed the FRED player entry in eagleplayer.conf:
[code:1:70beca48b1]Fred			prefixes=fred	broken_song_end
[/code:1:70beca48b1]
(you have to checkout latest CVS version for that option to work)

You can do a work-around with the latest CVS version that sets song timeout for that particular song by adding a line to ~/.uade2/song.conf:
[code:1:70beca48b1]md5=60f3bb11cc1bacaf77d7c16d13361844 broken_song_end timeout=200 comment FRED.Hybris_Light
[/code:1:70beca48b1]

---

From: Enverex
Date: Sat Apr 29 18:48:08 2006

To: UADE-User-discussion
The Settlers ingame music track has this issue too, it ends at around 8 minutes something but should last a lot longer.

---

From: shd
Date: Sat Apr 29 18:59:02 2006

To: UADE-User-discussion
[quote:81b53f3ded="Enverex"]The Settlers ingame music track has this issue too, it ends at around 8 minutes something but should last a lot longer.[/quote:81b53f3ded]

That's probably the default timeout (512s = 8min 32s). You can override that song by adding an entry to song.conf:

md5=xxxxxxxxxxxxx always_ends comment The settlers in game music track