diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-28 03:57:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 03:57:21 +0200 |
commit | da2bdbc0d7772fe195611fb163df2dbd533a6b56 (patch) | |
tree | de144b37d0c68388953701073929fc3d434dc1e4 /src/core/hle | |
parent | gl_shader_decompiler: Add a return path for unknown instructions. (diff) | |
parent | Service/Audio: add hwopus service, stub GetWorkBufferSize function (diff) | |
download | yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar.gz yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar.bz2 yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar.lz yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar.xz yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.tar.zst yuzu-da2bdbc0d7772fe195611fb163df2dbd533a6b56.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/audio.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 29 | ||||
-rw-r--r-- | src/core/hle/service/audio/hwopus.h | 20 |
3 files changed, 51 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/audio.cpp b/src/core/hle/service/audio/audio.cpp index 92f910b5f..d231e91e1 100644 --- a/src/core/hle/service/audio/audio.cpp +++ b/src/core/hle/service/audio/audio.cpp @@ -8,6 +8,7 @@ #include "core/hle/service/audio/audrec_u.h" #include "core/hle/service/audio/audren_u.h" #include "core/hle/service/audio/codecctl.h" +#include "core/hle/service/audio/hwopus.h" namespace Service::Audio { @@ -17,6 +18,7 @@ void InstallInterfaces(SM::ServiceManager& service_manager) { std::make_shared<AudRecU>()->InstallAsService(service_manager); std::make_shared<AudRenU>()->InstallAsService(service_manager); std::make_shared<CodecCtl>()->InstallAsService(service_manager); + std::make_shared<HwOpus>()->InstallAsService(service_manager); } } // namespace Service::Audio diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp new file mode 100644 index 000000000..7790359e9 --- /dev/null +++ b/src/core/hle/service/audio/hwopus.cpp @@ -0,0 +1,29 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" +#include "core/hle/ipc_helpers.h" +#include "core/hle/kernel/hle_ipc.h" +#include "core/hle/service/audio/hwopus.h" + +namespace Service::Audio { + +void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) { + NGLOG_WARNING(Service_Audio, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push<u32>(0x4000); +} + +HwOpus::HwOpus() : ServiceFramework("hwopus") { + static const FunctionInfo functions[] = { + {0, nullptr, "Initialize"}, + {1, &HwOpus::GetWorkBufferSize, "GetWorkBufferSize"}, + {2, nullptr, "InitializeMultiStream"}, + {3, nullptr, "GetWorkBufferSizeMultiStream"}, + }; + RegisterHandlers(functions); +} + +} // namespace Service::Audio diff --git a/src/core/hle/service/audio/hwopus.h b/src/core/hle/service/audio/hwopus.h new file mode 100644 index 000000000..090b8c825 --- /dev/null +++ b/src/core/hle/service/audio/hwopus.h @@ -0,0 +1,20 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service::Audio { + +class HwOpus final : public ServiceFramework<HwOpus> { +public: + explicit HwOpus(); + ~HwOpus() = default; + +private: + void GetWorkBufferSize(Kernel::HLERequestContext& ctx); +}; + +} // namespace Service::Audio |