change codes to function such as ttsd_player_clear