Try checking Role instead then.
if (Role != ROLE_SimulatedProxy && SomeLoopingSound) { //PLAY SOUND }