Comparing current data each tick to test the hours or minutes.
Yes, that's what I've been doing so far but I was thinking about automatizing the process through a function like :
- Every tick
- For T = 1 to 24
- If Current Hour = T and Current Minute = 0 then Play once sound T+"h"
- Next T
Where sound files are in the form of "1h", "2h", etc
Any idea about how to do that ?
PS : wouldn't "every tick" check for that be too much processor consuming ?