Files
eden/src/core/hle/service/audio/audio.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.8 KiB
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2018-01-14 21:29:11 -05:00
2023-02-18 16:26:48 -05:00
#include "core/core.h"
2018-01-14 21:29:11 -05:00
#include "core/hle/service/audio/audio.h"
#include "core/hle/service/audio/audio_controller.h"
2024-02-19 21:45:48 -05:00
#include "core/hle/service/audio/audio_in_manager.h"
2024-02-19 23:38:09 -05:00
#include "core/hle/service/audio/audio_out_manager.h"
#include "core/hle/service/audio/audio_renderer_manager.h"
#include "core/hle/service/audio/final_output_recorder_manager.h"
#include "core/hle/service/audio/final_output_recorder_manager_for_applet.h"
#include "core/hle/service/audio/hardware_opus_decoder_manager.h"
2023-02-18 16:26:48 -05:00
#include "core/hle/service/server_manager.h"
#include "core/hle/service/service.h"
2018-01-14 21:29:11 -05:00
namespace Service::Audio {
2018-01-14 21:29:11 -05:00
2023-02-18 16:26:48 -05:00
void LoopProcess(Core::System& system) {
auto server_manager = std::make_unique<ServerManager>(system);
2024-02-19 21:45:48 -05:00
server_manager->RegisterNamedService("audin:u", std::make_shared<IAudioInManager>(system));
2024-02-19 23:38:09 -05:00
server_manager->RegisterNamedService("audout:u", std::make_shared<IAudioOutManager>(system));
// Depends on audout:u and audin:u on ctor!
server_manager->RegisterNamedService("audctl", std::make_shared<IAudioController>(system));
server_manager->RegisterNamedService("audrec:a", std::make_shared<IFinalOutputRecorderManagerForApplet>(system));
server_manager->RegisterNamedService("audrec:u", std::make_shared<IFinalOutputRecorderManager>(system));
server_manager->RegisterNamedService("audren:u", std::make_shared<IAudioRendererManager>(system));
server_manager->RegisterNamedService("hwopus", std::make_shared<IHardwareOpusDecoderManager>(system));
2023-02-18 16:26:48 -05:00
ServerManager::RunServer(std::move(server_manager));
2018-01-14 21:29:11 -05:00
}
} // namespace Service::Audio