diff options
| author | 2019-01-29 15:31:28 -0500 | |
|---|---|---|
| committer | 2019-01-29 22:53:34 -0500 | |
| commit | 06887c80a5e430d63f217a5cdd129f5e97034a36 (patch) | |
| tree | 84dd0dab06ccba319d6f448223d9e4da88cc3ee3 /src | |
| parent | Merge pull request #2070 from ReinUsesLisp/cubearray-view (diff) | |
| download | yuzu-06887c80a5e430d63f217a5cdd129f5e97034a36.tar.gz yuzu-06887c80a5e430d63f217a5cdd129f5e97034a36.tar.xz yuzu-06887c80a5e430d63f217a5cdd129f5e97034a36.zip | |
hwopus: Fill in the rest of the unknown service function names
Filled in via information provided by SwitchBrew.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp index a850cadc8..abe21b992 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp | |||
| @@ -30,22 +30,24 @@ public: | |||
| 30 | u32 channel_count) | 30 | u32 channel_count) |
| 31 | : ServiceFramework("IHardwareOpusDecoderManager"), decoder(std::move(decoder)), | 31 | : ServiceFramework("IHardwareOpusDecoderManager"), decoder(std::move(decoder)), |
| 32 | sample_rate(sample_rate), channel_count(channel_count) { | 32 | sample_rate(sample_rate), channel_count(channel_count) { |
| 33 | // clang-format off | ||
| 33 | static const FunctionInfo functions[] = { | 34 | static const FunctionInfo functions[] = { |
| 34 | {0, &IHardwareOpusDecoderManager::DecodeInterleaved, "DecodeInterleaved"}, | 35 | {0, &IHardwareOpusDecoderManager::DecodeInterleavedOld, "DecodeInterleavedOld"}, |
| 35 | {1, nullptr, "SetContext"}, | 36 | {1, nullptr, "SetContext"}, |
| 36 | {2, nullptr, "DecodeInterleavedForMultiStream"}, | 37 | {2, nullptr, "DecodeInterleavedForMultiStreamOld"}, |
| 37 | {3, nullptr, "SetContextForMultiStream"}, | 38 | {3, nullptr, "SetContextForMultiStream"}, |
| 38 | {4, &IHardwareOpusDecoderManager::DecodeInterleavedWithPerformance, | 39 | {4, &IHardwareOpusDecoderManager::DecodeInterleavedWithPerfOld, "DecodeInterleavedWithPerfOld"}, |
| 39 | "DecodeInterleavedWithPerformance"}, | 40 | {5, nullptr, "DecodeInterleavedForMultiStreamWithPerfOld"}, |
| 40 | {5, nullptr, "Unknown5"}, | 41 | {6, nullptr, "DecodeInterleaved"}, |
| 41 | {6, nullptr, "Unknown6"}, | 42 | {7, nullptr, "DecodeInterleavedForMultiStream"}, |
| 42 | {7, nullptr, "Unknown7"}, | ||
| 43 | }; | 43 | }; |
| 44 | // clang-format on | ||
| 45 | |||
| 44 | RegisterHandlers(functions); | 46 | RegisterHandlers(functions); |
| 45 | } | 47 | } |
| 46 | 48 | ||
| 47 | private: | 49 | private: |
| 48 | void DecodeInterleaved(Kernel::HLERequestContext& ctx) { | 50 | void DecodeInterleavedOld(Kernel::HLERequestContext& ctx) { |
| 49 | LOG_DEBUG(Audio, "called"); | 51 | LOG_DEBUG(Audio, "called"); |
| 50 | 52 | ||
| 51 | u32 consumed = 0; | 53 | u32 consumed = 0; |
| @@ -65,7 +67,7 @@ private: | |||
| 65 | ctx.WriteBuffer(samples.data(), samples.size() * sizeof(s16)); | 67 | ctx.WriteBuffer(samples.data(), samples.size() * sizeof(s16)); |
| 66 | } | 68 | } |
| 67 | 69 | ||
| 68 | void DecodeInterleavedWithPerformance(Kernel::HLERequestContext& ctx) { | 70 | void DecodeInterleavedWithPerfOld(Kernel::HLERequestContext& ctx) { |
| 69 | LOG_DEBUG(Audio, "called"); | 71 | LOG_DEBUG(Audio, "called"); |
| 70 | 72 | ||
| 71 | u32 consumed = 0; | 73 | u32 consumed = 0; |