Changed sound manager to comply with RAII