Fixed is_playing, now True == ta <= t < tb (strict smaller than tb )