erased duplicate function rmsPlaying()