Loop medias do not change

That looks fine. Try some print statements to check the sound variables just before you use them