diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/audin_u.cpp | 5 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 15 |
3 files changed, 12 insertions, 18 deletions
diff --git a/src/core/hle/service/audio/audin_u.cpp b/src/core/hle/service/audio/audin_u.cpp index 608925dfc..8ba96583d 100644 --- a/src/core/hle/service/audio/audin_u.cpp +++ b/src/core/hle/service/audio/audin_u.cpp | |||
| @@ -203,9 +203,8 @@ private: | |||
| 203 | }; | 203 | }; |
| 204 | 204 | ||
| 205 | AudInU::AudInU(Core::System& system_) | 205 | AudInU::AudInU(Core::System& system_) |
| 206 | : ServiceFramework{system_, "audin:u", ServiceThreadType::CreateNew}, | 206 | : ServiceFramework{system_, "audin:u"}, service_context{system_, "AudInU"}, |
| 207 | service_context{system_, "AudInU"}, impl{std::make_unique<AudioCore::AudioIn::Manager>( | 207 | impl{std::make_unique<AudioCore::AudioIn::Manager>(system_)} { |
| 208 | system_)} { | ||
| 209 | // clang-format off | 208 | // clang-format off |
| 210 | static const FunctionInfo functions[] = { | 209 | static const FunctionInfo functions[] = { |
| 211 | {0, &AudInU::ListAudioIns, "ListAudioIns"}, | 210 | {0, &AudInU::ListAudioIns, "ListAudioIns"}, |
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 122290c6a..eb6bd34b6 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp | |||
| @@ -26,9 +26,8 @@ public: | |||
| 26 | explicit IAudioOut(Core::System& system_, AudioCore::AudioOut::Manager& manager, | 26 | explicit IAudioOut(Core::System& system_, AudioCore::AudioOut::Manager& manager, |
| 27 | size_t session_id, const std::string& device_name, | 27 | size_t session_id, const std::string& device_name, |
| 28 | const AudioOutParameter& in_params, u32 handle, u64 applet_resource_user_id) | 28 | const AudioOutParameter& in_params, u32 handle, u64 applet_resource_user_id) |
| 29 | : ServiceFramework{system_, "IAudioOut", ServiceThreadType::CreateNew}, | 29 | : ServiceFramework{system_, "IAudioOut"}, service_context{system_, "IAudioOut"}, |
| 30 | service_context{system_, "IAudioOut"}, event{service_context.CreateEvent( | 30 | event{service_context.CreateEvent("AudioOutEvent")}, |
| 31 | "AudioOutEvent")}, | ||
| 32 | impl{std::make_shared<AudioCore::AudioOut::Out>(system_, manager, event, session_id)} { | 31 | impl{std::make_shared<AudioCore::AudioOut::Out>(system_, manager, event, session_id)} { |
| 33 | 32 | ||
| 34 | // clang-format off | 33 | // clang-format off |
| @@ -221,9 +220,8 @@ private: | |||
| 221 | }; | 220 | }; |
| 222 | 221 | ||
| 223 | AudOutU::AudOutU(Core::System& system_) | 222 | AudOutU::AudOutU(Core::System& system_) |
| 224 | : ServiceFramework{system_, "audout:u", ServiceThreadType::CreateNew}, | 223 | : ServiceFramework{system_, "audout:u"}, service_context{system_, "AudOutU"}, |
| 225 | service_context{system_, "AudOutU"}, impl{std::make_unique<AudioCore::AudioOut::Manager>( | 224 | impl{std::make_unique<AudioCore::AudioOut::Manager>(system_)} { |
| 226 | system_)} { | ||
| 227 | // clang-format off | 225 | // clang-format off |
| 228 | static const FunctionInfo functions[] = { | 226 | static const FunctionInfo functions[] = { |
| 229 | {0, &AudOutU::ListAudioOuts, "ListAudioOuts"}, | 227 | {0, &AudOutU::ListAudioOuts, "ListAudioOuts"}, |
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index 13423dca6..615ba1f78 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp | |||
| @@ -34,10 +34,9 @@ public: | |||
| 34 | AudioCore::AudioRendererParameterInternal& params, | 34 | AudioCore::AudioRendererParameterInternal& params, |
| 35 | Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size, | 35 | Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size, |
| 36 | u32 process_handle, u64 applet_resource_user_id, s32 session_id) | 36 | u32 process_handle, u64 applet_resource_user_id, s32 session_id) |
| 37 | : ServiceFramework{system_, "IAudioRenderer", ServiceThreadType::CreateNew}, | 37 | : ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"}, |
| 38 | service_context{system_, "IAudioRenderer"}, rendered_event{service_context.CreateEvent( | 38 | rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_}, |
| 39 | "IAudioRendererEvent")}, | 39 | impl{std::make_unique<Renderer>(system_, manager, rendered_event)} { |
| 40 | manager{manager_}, impl{std::make_unique<Renderer>(system_, manager, rendered_event)} { | ||
| 41 | // clang-format off | 40 | // clang-format off |
| 42 | static const FunctionInfo functions[] = { | 41 | static const FunctionInfo functions[] = { |
| 43 | {0, &IAudioRenderer::GetSampleRate, "GetSampleRate"}, | 42 | {0, &IAudioRenderer::GetSampleRate, "GetSampleRate"}, |
| @@ -242,10 +241,8 @@ class IAudioDevice final : public ServiceFramework<IAudioDevice> { | |||
| 242 | public: | 241 | public: |
| 243 | explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision, | 242 | explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision, |
| 244 | u32 device_num) | 243 | u32 device_num) |
| 245 | : ServiceFramework{system_, "IAudioDevice", ServiceThreadType::CreateNew}, | 244 | : ServiceFramework{system_, "IAudioDevice"}, service_context{system_, "IAudioDevice"}, |
| 246 | service_context{system_, "IAudioDevice"}, impl{std::make_unique<AudioDevice>( | 245 | impl{std::make_unique<AudioDevice>(system_, applet_resource_user_id, revision)}, |
| 247 | system_, applet_resource_user_id, | ||
| 248 | revision)}, | ||
| 249 | event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} { | 246 | event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} { |
| 250 | static const FunctionInfo functions[] = { | 247 | static const FunctionInfo functions[] = { |
| 251 | {0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, | 248 | {0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, |
| @@ -420,7 +417,7 @@ private: | |||
| 420 | }; | 417 | }; |
| 421 | 418 | ||
| 422 | AudRenU::AudRenU(Core::System& system_) | 419 | AudRenU::AudRenU(Core::System& system_) |
| 423 | : ServiceFramework{system_, "audren:u", ServiceThreadType::CreateNew}, | 420 | : ServiceFramework{system_, "audren:u"}, |
| 424 | service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} { | 421 | service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} { |
| 425 | // clang-format off | 422 | // clang-format off |
| 426 | static const FunctionInfo functions[] = { | 423 | static const FunctionInfo functions[] = { |