mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 13:56:27 -05:00
a936972614
Converts services to have their own processes
31 lines
1.4 KiB
C++
31 lines
1.4 KiB
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "core/core.h"
|
|
#include "core/hle/service/audio/audctl.h"
|
|
#include "core/hle/service/audio/audin_u.h"
|
|
#include "core/hle/service/audio/audio.h"
|
|
#include "core/hle/service/audio/audout_u.h"
|
|
#include "core/hle/service/audio/audrec_a.h"
|
|
#include "core/hle/service/audio/audrec_u.h"
|
|
#include "core/hle/service/audio/audren_u.h"
|
|
#include "core/hle/service/audio/hwopus.h"
|
|
#include "core/hle/service/server_manager.h"
|
|
#include "core/hle/service/service.h"
|
|
|
|
namespace Service::Audio {
|
|
|
|
void LoopProcess(Core::System& system) {
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
server_manager->RegisterNamedService("audctl", std::make_shared<AudCtl>(system));
|
|
server_manager->RegisterNamedService("audout:u", std::make_shared<AudOutU>(system));
|
|
server_manager->RegisterNamedService("audin:u", std::make_shared<AudInU>(system));
|
|
server_manager->RegisterNamedService("audrec:a", std::make_shared<AudRecA>(system));
|
|
server_manager->RegisterNamedService("audrec:u", std::make_shared<AudRecU>(system));
|
|
server_manager->RegisterNamedService("audren:u", std::make_shared<AudRenU>(system));
|
|
server_manager->RegisterNamedService("hwopus", std::make_shared<HwOpus>(system));
|
|
ServerManager::RunServer(std::move(server_manager));
|
|
}
|
|
|
|
} // namespace Service::Audio
|