Issue267

Title AUDIO: play entire song before next one starts
Priority idea Status open
Assigned To Keywords
Linked issues Watchers

Submitted on 2011-07-24 19h07 by tracker_migration, last changed by matthiaskrgr.

Messages
Author: tracker_migration Date: 2010-02-07   08h45
Submitted by matthiaskrgr
The current behavior is that each level has a song, when Tux changes the level, the song switches immediately. That means, if you move between levels unknowingly (Ethereal Meadows and Crystal Fields for example) the music may change many times.

My idea is to follow a pattern like this:  
1) Tux starts in Cryo Stasis Lab (song 1 is played)
2) Tux moves to Temple Wood (song 1 not finished yet, still played)
3)  Tux moves to Town (song 1 not finished yet, still played)
4) Song  1 ends, Tux still in Town
5) Check what song is defined for Town
6) Play that song (song 2)
7) Tux leaves Town, now in Temple Wood (song 2 is still played)
8) ...

If a level and a music don't fit together (hell fortress/a dungeon and the town music for example) the song should still change immediately.


What do you think?



rev. 2386

Thank you for your fine work!
Matthias Kr\u00fcger
Author: tracker_migration Date: 2010-02-07   10h25
Posted by stedevil
How do we define "If a level and a music don't fit together" since Tux can literally have any levels music running when entering any other level if we adapt your change suggestion. Seams way too overworked to me.

Thus IMO what we realistically have to choose from is

1) Leave it as now
2) Change only when song ends 

What should also be considered is how much we can improve things in situation 1 by simply assigning more levels next to each other with the same song since that does not cause the song to be interrupted when switching between these levels. 
Author: tracker_migration Date: 2010-02-17   07h05
Posted by stedevil
After some more thinking I think another approach would also be quite interesting for creating smoother transitions.

Add the possibility to specify X (eg 3) songs for each level. One should be the first choise song and then (eg) 2 alternative tracks should be specified (maybe a numbered list). When moving to a neighbor level, if that current song is also in it's list, keep playing that song. If not, switch to
A) another song that is also present on the area Tux just came from
B) when A is not possible, select a random song from those assigned to the new level


If the list is a "order of preference" the logic is
Is current song in list? Continue playing it
else
Is song #1 in list of just left neighbor area? Play that
else
Is song #2 in list of just left neighbor area? Play that
else ...

When the current song finished playing, switch to current levels Primary option.
Author: tracker_migration Date: 2010-02-17   07h09
Posted by stedevil
It should of course be
B) when A is not possible, select new levels primary option
History
Date User Action Args
2011-07-27 10:31:28matthiaskrgrsetpriority: bug -> idea
2011-07-24 19:07:48tracker_migrationcreate