refactored SoundManager.pde