mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 07:12:46 +01:00
hwopus: Fill in the rest of the unknown service function names
Filled in via information provided by SwitchBrew.
This commit is contained in:
parent
3c3d9afd61
commit
06887c80a5
1 changed files with 11 additions and 9 deletions
|
@ -30,22 +30,24 @@ public:
|
||||||
u32 channel_count)
|
u32 channel_count)
|
||||||
: ServiceFramework("IHardwareOpusDecoderManager"), decoder(std::move(decoder)),
|
: ServiceFramework("IHardwareOpusDecoderManager"), decoder(std::move(decoder)),
|
||||||
sample_rate(sample_rate), channel_count(channel_count) {
|
sample_rate(sample_rate), channel_count(channel_count) {
|
||||||
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, &IHardwareOpusDecoderManager::DecodeInterleaved, "DecodeInterleaved"},
|
{0, &IHardwareOpusDecoderManager::DecodeInterleavedOld, "DecodeInterleavedOld"},
|
||||||
{1, nullptr, "SetContext"},
|
{1, nullptr, "SetContext"},
|
||||||
{2, nullptr, "DecodeInterleavedForMultiStream"},
|
{2, nullptr, "DecodeInterleavedForMultiStreamOld"},
|
||||||
{3, nullptr, "SetContextForMultiStream"},
|
{3, nullptr, "SetContextForMultiStream"},
|
||||||
{4, &IHardwareOpusDecoderManager::DecodeInterleavedWithPerformance,
|
{4, &IHardwareOpusDecoderManager::DecodeInterleavedWithPerfOld, "DecodeInterleavedWithPerfOld"},
|
||||||
"DecodeInterleavedWithPerformance"},
|
{5, nullptr, "DecodeInterleavedForMultiStreamWithPerfOld"},
|
||||||
{5, nullptr, "Unknown5"},
|
{6, nullptr, "DecodeInterleaved"},
|
||||||
{6, nullptr, "Unknown6"},
|
{7, nullptr, "DecodeInterleavedForMultiStream"},
|
||||||
{7, nullptr, "Unknown7"},
|
|
||||||
};
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void DecodeInterleaved(Kernel::HLERequestContext& ctx) {
|
void DecodeInterleavedOld(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_DEBUG(Audio, "called");
|
LOG_DEBUG(Audio, "called");
|
||||||
|
|
||||||
u32 consumed = 0;
|
u32 consumed = 0;
|
||||||
|
@ -65,7 +67,7 @@ private:
|
||||||
ctx.WriteBuffer(samples.data(), samples.size() * sizeof(s16));
|
ctx.WriteBuffer(samples.data(), samples.size() * sizeof(s16));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DecodeInterleavedWithPerformance(Kernel::HLERequestContext& ctx) {
|
void DecodeInterleavedWithPerfOld(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_DEBUG(Audio, "called");
|
LOG_DEBUG(Audio, "called");
|
||||||
|
|
||||||
u32 consumed = 0;
|
u32 consumed = 0;
|
||||||
|
|
Loading…
Reference in a new issue