HOPKINS: Remove dead code and out of bound access in SoundManager