diff options
author | bunnei <bunneidev@gmail.com> | 2021-06-25 03:25:37 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-06-25 03:25:37 +0200 |
commit | 3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54 (patch) | |
tree | 1e58b6556942e9579b7bfd680fb27e85766623e2 | |
parent | hle: service: aoc: Stub GetAddOnContentListChangedEventWithProcessId. (diff) | |
download | yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar.gz yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar.bz2 yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar.lz yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar.xz yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.tar.zst yuzu-3565e32f4d8ae28ae69dbb59e4ecad4fc8155a54.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 16 | ||||
-rw-r--r-- | src/core/hle/service/audio/hwopus.h | 4 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp index 10e6f7a64..a6e030a4a 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp @@ -253,7 +253,11 @@ void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) { rb.Push<u32>(worker_buffer_sz); } -void HwOpus::OpenOpusDecoder(Kernel::HLERequestContext& ctx) { +void HwOpus::GetWorkBufferSizeEx(Kernel::HLERequestContext& ctx) { + GetWorkBufferSize(ctx); +} + +void HwOpus::OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const auto sample_rate = rp.Pop<u32>(); const auto channel_count = rp.Pop<u32>(); @@ -291,14 +295,18 @@ void HwOpus::OpenOpusDecoder(Kernel::HLERequestContext& ctx) { system, OpusDecoderState{std::move(decoder), sample_rate, channel_count}); } +void HwOpus::OpenHardwareOpusDecoderEx(Kernel::HLERequestContext& ctx) { + OpenHardwareOpusDecoder(ctx); +} + HwOpus::HwOpus(Core::System& system_) : ServiceFramework{system_, "hwopus"} { static const FunctionInfo functions[] = { - {0, &HwOpus::OpenOpusDecoder, "OpenOpusDecoder"}, + {0, &HwOpus::OpenHardwareOpusDecoder, "OpenHardwareOpusDecoder"}, {1, &HwOpus::GetWorkBufferSize, "GetWorkBufferSize"}, {2, nullptr, "OpenOpusDecoderForMultiStream"}, {3, nullptr, "GetWorkBufferSizeForMultiStream"}, - {4, nullptr, "OpenHardwareOpusDecoderEx"}, - {5, nullptr, "GetWorkBufferSizeEx"}, + {4, &HwOpus::OpenHardwareOpusDecoderEx, "OpenHardwareOpusDecoderEx"}, + {5, &HwOpus::GetWorkBufferSizeEx, "GetWorkBufferSizeEx"}, {6, nullptr, "OpenHardwareOpusDecoderForMultiStreamEx"}, {7, nullptr, "GetWorkBufferSizeForMultiStreamEx"}, }; diff --git a/src/core/hle/service/audio/hwopus.h b/src/core/hle/service/audio/hwopus.h index 4f921f18e..b74824ff3 100644 --- a/src/core/hle/service/audio/hwopus.h +++ b/src/core/hle/service/audio/hwopus.h @@ -18,8 +18,10 @@ public: ~HwOpus() override; private: - void OpenOpusDecoder(Kernel::HLERequestContext& ctx); + void OpenHardwareOpusDecoder(Kernel::HLERequestContext& ctx); + void OpenHardwareOpusDecoderEx(Kernel::HLERequestContext& ctx); void GetWorkBufferSize(Kernel::HLERequestContext& ctx); + void GetWorkBufferSizeEx(Kernel::HLERequestContext& ctx); }; } // namespace Service::Audio |