musicplayer: rename 'ret' to 'length' to clarify the meaning of the variable