2018-06-25 13:44:17 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
#include "core/hle/kernel/hle_ipc.h"
|
|
|
|
#include "core/hle/service/audio/hwopus.h"
|
|
|
|
|
|
|
|
namespace Service::Audio {
|
|
|
|
|
|
|
|
void HwOpus::GetWorkBufferSize(Kernel::HLERequestContext& ctx) {
|
2018-07-02 16:13:26 +00:00
|
|
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
2018-06-25 13:44:17 +00:00
|
|
|
IPC::ResponseBuilder rb{ctx, 3};
|
|
|
|
rb.Push(RESULT_SUCCESS);
|
|
|
|
rb.Push<u32>(0x4000);
|
|
|
|
}
|
|
|
|
|
|
|
|
HwOpus::HwOpus() : ServiceFramework("hwopus") {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, nullptr, "Initialize"},
|
|
|
|
{1, &HwOpus::GetWorkBufferSize, "GetWorkBufferSize"},
|
|
|
|
{2, nullptr, "InitializeMultiStream"},
|
|
|
|
{3, nullptr, "GetWorkBufferSizeMultiStream"},
|
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::Audio
|