summaryrefslogtreecommitdiff
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorGravatar Liam2024-02-20 22:18:57 -0500
committerGravatar Liam2024-02-20 22:51:39 -0500
commit2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c (patch)
treef7a70d1218a3e52da4f4587ee9f1b8ce0dfd2c99 /src/core/hle/service
parentaudio: rewrite IHardwareOpusDecoder (diff)
downloadyuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.gz
yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.tar.xz
yuzu-2e4a6b7f92fbf73eb5173c9bda5c9b5b61f5458c.zip
audio: format
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/audio/audio_in.cpp5
-rw-r--r--src/core/hle/service/audio/audio_in_manager.cpp4
-rw-r--r--src/core/hle/service/audio/audio_renderer.cpp4
3 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/service/audio/audio_in.cpp b/src/core/hle/service/audio/audio_in.cpp
index 9240cc336..416803acc 100644
--- a/src/core/hle/service/audio/audio_in.cpp
+++ b/src/core/hle/service/audio/audio_in.cpp
@@ -12,8 +12,9 @@ IAudioIn::IAudioIn(Core::System& system_, Manager& manager, size_t session_id,
12 const std::string& device_name, const AudioInParameter& in_params, 12 const std::string& device_name, const AudioInParameter& in_params,
13 Kernel::KProcess* handle, u64 applet_resource_user_id) 13 Kernel::KProcess* handle, u64 applet_resource_user_id)
14 : ServiceFramework{system_, "IAudioIn"}, process{handle}, service_context{system_, "IAudioIn"}, 14 : ServiceFramework{system_, "IAudioIn"}, process{handle}, service_context{system_, "IAudioIn"},
15 event{service_context.CreateEvent("AudioInEvent")}, 15 event{service_context.CreateEvent("AudioInEvent")}, impl{std::make_shared<In>(system_,
16 impl{std::make_shared<In>(system_, manager, event, session_id)} { 16 manager, event,
17 session_id)} {
17 // clang-format off 18 // clang-format off
18 static const FunctionInfo functions[] = { 19 static const FunctionInfo functions[] = {
19 {0, D<&IAudioIn::GetAudioInState>, "GetAudioInState"}, 20 {0, D<&IAudioIn::GetAudioInState>, "GetAudioInState"},
diff --git a/src/core/hle/service/audio/audio_in_manager.cpp b/src/core/hle/service/audio/audio_in_manager.cpp
index d55da17c8..2675a5773 100644
--- a/src/core/hle/service/audio/audio_in_manager.cpp
+++ b/src/core/hle/service/audio/audio_in_manager.cpp
@@ -10,8 +10,8 @@ namespace Service::Audio {
10using namespace AudioCore::AudioIn; 10using namespace AudioCore::AudioIn;
11 11
12IAudioInManager::IAudioInManager(Core::System& system_) 12IAudioInManager::IAudioInManager(Core::System& system_)
13 : ServiceFramework{system_, "audin:u"}, 13 : ServiceFramework{system_, "audin:u"}, impl{std::make_unique<AudioCore::AudioIn::Manager>(
14 impl{std::make_unique<AudioCore::AudioIn::Manager>(system_)} { 14 system_)} {
15 // clang-format off 15 // clang-format off
16 static const FunctionInfo functions[] = { 16 static const FunctionInfo functions[] = {
17 {0, D<&IAudioInManager::ListAudioIns>, "ListAudioIns"}, 17 {0, D<&IAudioInManager::ListAudioIns>, "ListAudioIns"},
diff --git a/src/core/hle/service/audio/audio_renderer.cpp b/src/core/hle/service/audio/audio_renderer.cpp
index b78660cea..fc4aad233 100644
--- a/src/core/hle/service/audio/audio_renderer.cpp
+++ b/src/core/hle/service/audio/audio_renderer.cpp
@@ -14,8 +14,8 @@ IAudioRenderer::IAudioRenderer(Core::System& system_, Manager& manager_,
14 s32 session_id) 14 s32 session_id)
15 : ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"}, 15 : ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"},
16 rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_}, 16 rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_},
17 impl{std::make_unique<Renderer>(system_, manager, rendered_event)}, 17 impl{std::make_unique<Renderer>(system_, manager, rendered_event)}, process_handle{
18 process_handle{process_handle_} { 18 process_handle_} {
19 // clang-format off 19 // clang-format off
20 static const FunctionInfo functions[] = { 20 static const FunctionInfo functions[] = {
21 {0, D<&IAudioRenderer::GetSampleRate>, "GetSampleRate"}, 21 {0, D<&IAudioRenderer::GetSampleRate>, "GetSampleRate"},