Refactor sound manager.