diff options
| -rw-r--r-- | src/core/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audio.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/audio/final_output_recorder_manager.cpp (renamed from src/core/hle/service/audio/audrec_u.cpp) | 7 | ||||
| -rw-r--r-- | src/core/hle/service/audio/final_output_recorder_manager.h (renamed from src/core/hle/service/audio/audrec_a.h) | 6 | ||||
| -rw-r--r-- | src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp (renamed from src/core/hle/service/audio/audrec_a.cpp) | 7 | ||||
| -rw-r--r-- | src/core/hle/service/audio/final_output_recorder_manager_for_applet.h (renamed from src/core/hle/service/audio/audrec_u.h) | 7 |
6 files changed, 25 insertions, 20 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c0f828bce..68b940af3 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -501,13 +501,13 @@ add_library(core STATIC | |||
| 501 | hle/service/audio/audio.h | 501 | hle/service/audio/audio.h |
| 502 | hle/service/audio/audio_controller.cpp | 502 | hle/service/audio/audio_controller.cpp |
| 503 | hle/service/audio/audio_controller.h | 503 | hle/service/audio/audio_controller.h |
| 504 | hle/service/audio/audrec_a.cpp | ||
| 505 | hle/service/audio/audrec_a.h | ||
| 506 | hle/service/audio/audrec_u.cpp | ||
| 507 | hle/service/audio/audrec_u.h | ||
| 508 | hle/service/audio/audren_u.cpp | 504 | hle/service/audio/audren_u.cpp |
| 509 | hle/service/audio/audren_u.h | 505 | hle/service/audio/audren_u.h |
| 510 | hle/service/audio/errors.h | 506 | hle/service/audio/errors.h |
| 507 | hle/service/audio/final_output_recorder_manager_for_applet.cpp | ||
| 508 | hle/service/audio/final_output_recorder_manager_for_applet.h | ||
| 509 | hle/service/audio/final_output_recorder_manager.cpp | ||
| 510 | hle/service/audio/final_output_recorder_manager.h | ||
| 511 | hle/service/audio/hwopus.cpp | 511 | hle/service/audio/hwopus.cpp |
| 512 | hle/service/audio/hwopus.h | 512 | hle/service/audio/hwopus.h |
| 513 | hle/service/bcat/backend/backend.cpp | 513 | hle/service/bcat/backend/backend.cpp |
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp index aa5b9dbfe..02773aee5 100644 --- a/src/core/hle/service/audio/audio.cpp +++ b/src/core/hle/service/audio/audio.cpp | |||
| @@ -6,9 +6,9 @@ | |||
| 6 | #include "core/hle/service/audio/audio_controller.h" | 6 | #include "core/hle/service/audio/audio_controller.h" |
| 7 | #include "core/hle/service/audio/audio_in_manager.h" | 7 | #include "core/hle/service/audio/audio_in_manager.h" |
| 8 | #include "core/hle/service/audio/audio_out_manager.h" | 8 | #include "core/hle/service/audio/audio_out_manager.h" |
| 9 | #include "core/hle/service/audio/audrec_a.h" | ||
| 10 | #include "core/hle/service/audio/audrec_u.h" | ||
| 11 | #include "core/hle/service/audio/audren_u.h" | 9 | #include "core/hle/service/audio/audren_u.h" |
| 10 | #include "core/hle/service/audio/final_output_recorder_manager.h" | ||
| 11 | #include "core/hle/service/audio/final_output_recorder_manager_for_applet.h" | ||
| 12 | #include "core/hle/service/audio/hwopus.h" | 12 | #include "core/hle/service/audio/hwopus.h" |
| 13 | #include "core/hle/service/server_manager.h" | 13 | #include "core/hle/service/server_manager.h" |
| 14 | #include "core/hle/service/service.h" | 14 | #include "core/hle/service/service.h" |
| @@ -21,8 +21,10 @@ void LoopProcess(Core::System& system) { | |||
| 21 | server_manager->RegisterNamedService("audctl", std::make_shared<IAudioController>(system)); | 21 | server_manager->RegisterNamedService("audctl", std::make_shared<IAudioController>(system)); |
| 22 | server_manager->RegisterNamedService("audin:u", std::make_shared<IAudioInManager>(system)); | 22 | server_manager->RegisterNamedService("audin:u", std::make_shared<IAudioInManager>(system)); |
| 23 | server_manager->RegisterNamedService("audout:u", std::make_shared<IAudioOutManager>(system)); | 23 | server_manager->RegisterNamedService("audout:u", std::make_shared<IAudioOutManager>(system)); |
| 24 | server_manager->RegisterNamedService("audrec:a", std::make_shared<AudRecA>(system)); | 24 | server_manager->RegisterNamedService( |
| 25 | server_manager->RegisterNamedService("audrec:u", std::make_shared<AudRecU>(system)); | 25 | "audrec:a", std::make_shared<IFinalOutputRecorderManagerForApplet>(system)); |
| 26 | server_manager->RegisterNamedService("audrec:u", | ||
| 27 | std::make_shared<IFinalOutputRecorderManager>(system)); | ||
| 26 | server_manager->RegisterNamedService("audren:u", std::make_shared<AudRenU>(system)); | 28 | server_manager->RegisterNamedService("audren:u", std::make_shared<AudRenU>(system)); |
| 27 | server_manager->RegisterNamedService("hwopus", std::make_shared<HwOpus>(system)); | 29 | server_manager->RegisterNamedService("hwopus", std::make_shared<HwOpus>(system)); |
| 28 | ServerManager::RunServer(std::move(server_manager)); | 30 | ServerManager::RunServer(std::move(server_manager)); |
diff --git a/src/core/hle/service/audio/audrec_u.cpp b/src/core/hle/service/audio/final_output_recorder_manager.cpp index bc55cec17..f70a0e62d 100644 --- a/src/core/hle/service/audio/audrec_u.cpp +++ b/src/core/hle/service/audio/final_output_recorder_manager.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/audio/audrec_u.h" | 4 | #include "core/hle/service/audio/final_output_recorder_manager.h" |
| 5 | 5 | ||
| 6 | namespace Service::Audio { | 6 | namespace Service::Audio { |
| 7 | 7 | ||
| @@ -30,13 +30,14 @@ public: | |||
| 30 | } | 30 | } |
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | AudRecU::AudRecU(Core::System& system_) : ServiceFramework{system_, "audrec:u"} { | 33 | IFinalOutputRecorderManager::IFinalOutputRecorderManager(Core::System& system_) |
| 34 | : ServiceFramework{system_, "audrec:u"} { | ||
| 34 | static const FunctionInfo functions[] = { | 35 | static const FunctionInfo functions[] = { |
| 35 | {0, nullptr, "OpenFinalOutputRecorder"}, | 36 | {0, nullptr, "OpenFinalOutputRecorder"}, |
| 36 | }; | 37 | }; |
| 37 | RegisterHandlers(functions); | 38 | RegisterHandlers(functions); |
| 38 | } | 39 | } |
| 39 | 40 | ||
| 40 | AudRecU::~AudRecU() = default; | 41 | IFinalOutputRecorderManager::~IFinalOutputRecorderManager() = default; |
| 41 | 42 | ||
| 42 | } // namespace Service::Audio | 43 | } // namespace Service::Audio |
diff --git a/src/core/hle/service/audio/audrec_a.h b/src/core/hle/service/audio/final_output_recorder_manager.h index 9edf89f6c..0663b894e 100644 --- a/src/core/hle/service/audio/audrec_a.h +++ b/src/core/hle/service/audio/final_output_recorder_manager.h | |||
| @@ -11,10 +11,10 @@ class System; | |||
| 11 | 11 | ||
| 12 | namespace Service::Audio { | 12 | namespace Service::Audio { |
| 13 | 13 | ||
| 14 | class AudRecA final : public ServiceFramework<AudRecA> { | 14 | class IFinalOutputRecorderManager final : public ServiceFramework<IFinalOutputRecorderManager> { |
| 15 | public: | 15 | public: |
| 16 | explicit AudRecA(Core::System& system_); | 16 | explicit IFinalOutputRecorderManager(Core::System& system_); |
| 17 | ~AudRecA() override; | 17 | ~IFinalOutputRecorderManager() override; |
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | } // namespace Service::Audio | 20 | } // namespace Service::Audio |
diff --git a/src/core/hle/service/audio/audrec_a.cpp b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp index fa82e9ac7..7e2e42bbe 100644 --- a/src/core/hle/service/audio/audrec_a.cpp +++ b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.cpp | |||
| @@ -1,11 +1,12 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/audio/audrec_a.h" | 4 | #include "core/hle/service/audio/final_output_recorder_manager_for_applet.h" |
| 5 | 5 | ||
| 6 | namespace Service::Audio { | 6 | namespace Service::Audio { |
| 7 | 7 | ||
| 8 | AudRecA::AudRecA(Core::System& system_) : ServiceFramework{system_, "audrec:a"} { | 8 | IFinalOutputRecorderManagerForApplet::IFinalOutputRecorderManagerForApplet(Core::System& system_) |
| 9 | : ServiceFramework{system_, "audrec:a"} { | ||
| 9 | // clang-format off | 10 | // clang-format off |
| 10 | static const FunctionInfo functions[] = { | 11 | static const FunctionInfo functions[] = { |
| 11 | {0, nullptr, "RequestSuspend"}, | 12 | {0, nullptr, "RequestSuspend"}, |
| @@ -16,6 +17,6 @@ AudRecA::AudRecA(Core::System& system_) : ServiceFramework{system_, "audrec:a"} | |||
| 16 | RegisterHandlers(functions); | 17 | RegisterHandlers(functions); |
| 17 | } | 18 | } |
| 18 | 19 | ||
| 19 | AudRecA::~AudRecA() = default; | 20 | IFinalOutputRecorderManagerForApplet::~IFinalOutputRecorderManagerForApplet() = default; |
| 20 | 21 | ||
| 21 | } // namespace Service::Audio | 22 | } // namespace Service::Audio |
diff --git a/src/core/hle/service/audio/audrec_u.h b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h index 8b4817884..27940f7e0 100644 --- a/src/core/hle/service/audio/audrec_u.h +++ b/src/core/hle/service/audio/final_output_recorder_manager_for_applet.h | |||
| @@ -11,10 +11,11 @@ class System; | |||
| 11 | 11 | ||
| 12 | namespace Service::Audio { | 12 | namespace Service::Audio { |
| 13 | 13 | ||
| 14 | class AudRecU final : public ServiceFramework<AudRecU> { | 14 | class IFinalOutputRecorderManagerForApplet final |
| 15 | : public ServiceFramework<IFinalOutputRecorderManagerForApplet> { | ||
| 15 | public: | 16 | public: |
| 16 | explicit AudRecU(Core::System& system_); | 17 | explicit IFinalOutputRecorderManagerForApplet(Core::System& system_); |
| 17 | ~AudRecU() override; | 18 | ~IFinalOutputRecorderManagerForApplet() override; |
| 18 | }; | 19 | }; |
| 19 | 20 | ||
| 20 | } // namespace Service::Audio | 21 | } // namespace Service::Audio |