diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-12 02:34:39 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-11-12 02:34:39 +0100 |
commit | 0d6a8824d04d08005ff45523b4c3008dd495d36d (patch) | |
tree | 01aa2482986fe4838a102b43fe7fbba062497c1a /src/core/hle/service/audio/audren_u.cpp | |
parent | Merge pull request #9204 from vonchenplus/dma_copy_1d_random_crash (diff) | |
download | yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar.gz yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar.bz2 yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar.lz yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar.xz yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.tar.zst yuzu-0d6a8824d04d08005ff45523b4c3008dd495d36d.zip |
Diffstat (limited to 'src/core/hle/service/audio/audren_u.cpp')
-rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
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: AudioCore::AudioRendererParameterInternal& params, Kernel::KTransferMemory* transfer_memory, u64 transfer_memory_size, u32 process_handle, u64 applet_resource_user_id, s32 session_id) - : ServiceFramework{system_, "IAudioRenderer", ServiceThreadType::CreateNew}, - service_context{system_, "IAudioRenderer"}, rendered_event{service_context.CreateEvent( - "IAudioRendererEvent")}, - manager{manager_}, impl{std::make_unique<Renderer>(system_, manager, rendered_event)} { + : ServiceFramework{system_, "IAudioRenderer"}, service_context{system_, "IAudioRenderer"}, + rendered_event{service_context.CreateEvent("IAudioRendererEvent")}, manager{manager_}, + impl{std::make_unique<Renderer>(system_, manager, rendered_event)} { // clang-format off static const FunctionInfo functions[] = { {0, &IAudioRenderer::GetSampleRate, "GetSampleRate"}, @@ -242,10 +241,8 @@ class IAudioDevice final : public ServiceFramework<IAudioDevice> { public: explicit IAudioDevice(Core::System& system_, u64 applet_resource_user_id, u32 revision, u32 device_num) - : ServiceFramework{system_, "IAudioDevice", ServiceThreadType::CreateNew}, - service_context{system_, "IAudioDevice"}, impl{std::make_unique<AudioDevice>( - system_, applet_resource_user_id, - revision)}, + : ServiceFramework{system_, "IAudioDevice"}, service_context{system_, "IAudioDevice"}, + impl{std::make_unique<AudioDevice>(system_, applet_resource_user_id, revision)}, event{service_context.CreateEvent(fmt::format("IAudioDeviceEvent-{}", device_num))} { static const FunctionInfo functions[] = { {0, &IAudioDevice::ListAudioDeviceName, "ListAudioDeviceName"}, @@ -420,7 +417,7 @@ private: }; AudRenU::AudRenU(Core::System& system_) - : ServiceFramework{system_, "audren:u", ServiceThreadType::CreateNew}, + : ServiceFramework{system_, "audren:u"}, service_context{system_, "audren:u"}, impl{std::make_unique<Manager>(system_)} { // clang-format off static const FunctionInfo functions[] = { |