Refactor sound system.