summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/audio/hwopus.cpp20
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
47private: 49private:
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;