jtp10181: Let's say i input 50 decisecs (5 seconds) duration will be 1_125_899_906_842_624, doesn't seems to be correct. ;)
Below is the my method.
For int seconds:
Code:
#define SECONDS_TO_SCREENFADE_UNITS(%1) ((1<<12) * (%1))
For float and int seconds (a bit slower):
Code:
#define SECONDS_TO_SCREENFADE_UNITS(%1) floatround(float((1<<12)) * (%1))