Loop medias do not change

If you have the code component above the sound component and check the value of the variable in Begin Routine then the sound component won’t yet have been set to the value, which is probably why you’re seeing it as the default. How about checking it in Each Frame code, e.g.

if frameN == 5:
     print("2nd_routine_sound.sound",2nd_routine_sound.sound)