mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
Merge pull request #11419 from FearlessTobi/hwopus-2
hwopus: Implement GetWorkBufferSizeExEx
This commit is contained in:
commit
1d07bb4ca6
2 changed files with 6 additions and 1 deletions
|
@ -267,6 +267,10 @@ void HwOpus::GetWorkBufferSizeEx(HLERequestContext& ctx) {
|
||||||
GetWorkBufferSize(ctx);
|
GetWorkBufferSize(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void HwOpus::GetWorkBufferSizeExEx(HLERequestContext& ctx) {
|
||||||
|
GetWorkBufferSizeEx(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
void HwOpus::GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx) {
|
void HwOpus::GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx) {
|
||||||
OpusMultiStreamParametersEx param;
|
OpusMultiStreamParametersEx param;
|
||||||
std::memcpy(¶m, ctx.ReadBuffer().data(), ctx.GetReadBufferSize());
|
std::memcpy(¶m, ctx.ReadBuffer().data(), ctx.GetReadBufferSize());
|
||||||
|
@ -409,7 +413,7 @@ HwOpus::HwOpus(Core::System& system_) : ServiceFramework{system_, "hwopus"} {
|
||||||
{6, &HwOpus::OpenHardwareOpusDecoderForMultiStreamEx,
|
{6, &HwOpus::OpenHardwareOpusDecoderForMultiStreamEx,
|
||||||
"OpenHardwareOpusDecoderForMultiStreamEx"},
|
"OpenHardwareOpusDecoderForMultiStreamEx"},
|
||||||
{7, &HwOpus::GetWorkBufferSizeForMultiStreamEx, "GetWorkBufferSizeForMultiStreamEx"},
|
{7, &HwOpus::GetWorkBufferSizeForMultiStreamEx, "GetWorkBufferSizeForMultiStreamEx"},
|
||||||
{8, nullptr, "GetWorkBufferSizeExEx"},
|
{8, &HwOpus::GetWorkBufferSizeExEx, "GetWorkBufferSizeExEx"},
|
||||||
{9, nullptr, "GetWorkBufferSizeForMultiStreamExEx"},
|
{9, nullptr, "GetWorkBufferSizeForMultiStreamExEx"},
|
||||||
};
|
};
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
|
|
|
@ -34,6 +34,7 @@ private:
|
||||||
void OpenHardwareOpusDecoderForMultiStreamEx(HLERequestContext& ctx);
|
void OpenHardwareOpusDecoderForMultiStreamEx(HLERequestContext& ctx);
|
||||||
void GetWorkBufferSize(HLERequestContext& ctx);
|
void GetWorkBufferSize(HLERequestContext& ctx);
|
||||||
void GetWorkBufferSizeEx(HLERequestContext& ctx);
|
void GetWorkBufferSizeEx(HLERequestContext& ctx);
|
||||||
|
void GetWorkBufferSizeExEx(HLERequestContext& ctx);
|
||||||
void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
|
void GetWorkBufferSizeForMultiStreamEx(HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue