Sounds some times not playing

I’ve made a program that plays sounds depending what time of day it is - but I’ve noticed they don’t always play?! I know the code is executed because the time segment changes colour.