Phobius
31-03-2009 23:57:09
I have modified the fade semantics slightly so that they are more flexible. The changes embody the following features:
- Fading-in a sound that is not playing works as before.[/*:m]
- Fading-in a sound that is only half-way faded in, fades it in fully over the specified time unless a fade-in is already in progress.[/*:m]
- Fading-in a sound that is fading out, fades it in from the position that the fading-out operation left it.[/*:m]
- Fading-out a sound that is playing works as before.[/*:m]
- Fading-out a sound that is only partially faded-in fades it out full over the specified time unless a fade-out is already in progress.[/*:m]
- Fading-out a sound that is fading in, fades it out from the position that the fade-out operation left it.[/*:m][/list:u]
This is especially useful for transitions where the user pressed "Esc" or some other key to skip it, where the fade-in/out was only half way. Let me know if there are any issues with it or you don't agree with the change.