|
|
|
@ -9,20 +9,18 @@
|
|
|
|
|
|
|
|
|
|
namespace Service::Audio {
|
|
|
|
|
|
|
|
|
|
class IAudioIn final : public ServiceFramework<IAudioIn> {
|
|
|
|
|
public:
|
|
|
|
|
explicit IAudioIn(Core::System& system_) : ServiceFramework{system_, "IAudioIn"} {
|
|
|
|
|
IAudioIn::IAudioIn(Core::System& system_) : ServiceFramework{system_, "IAudioIn"} {
|
|
|
|
|
// clang-format off
|
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
|
{0, nullptr, "GetAudioInState"},
|
|
|
|
|
{1, nullptr, "Start"},
|
|
|
|
|
{1, &IAudioIn::Start, "Start"},
|
|
|
|
|
{2, nullptr, "Stop"},
|
|
|
|
|
{3, nullptr, "AppendAudioInBuffer"},
|
|
|
|
|
{4, nullptr, "RegisterBufferEvent"},
|
|
|
|
|
{4, &IAudioIn::RegisterBufferEvent, "RegisterBufferEvent"},
|
|
|
|
|
{5, nullptr, "GetReleasedAudioInBuffer"},
|
|
|
|
|
{6, nullptr, "ContainsAudioInBuffer"},
|
|
|
|
|
{7, nullptr, "AppendUacInBuffer"},
|
|
|
|
|
{8, nullptr, "AppendAudioInBufferAuto"},
|
|
|
|
|
{8, &IAudioIn::AppendAudioInBufferAuto, "AppendAudioInBufferAuto"},
|
|
|
|
|
{9, nullptr, "GetReleasedAudioInBuffersAuto"},
|
|
|
|
|
{10, nullptr, "AppendUacInBufferAuto"},
|
|
|
|
|
{11, nullptr, "GetAudioInBufferCount"},
|
|
|
|
@ -33,8 +31,30 @@ public:
|
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IAudioIn::~IAudioIn() = default;
|
|
|
|
|
|
|
|
|
|
void IAudioIn::Start(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
|
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
rb.Push(ResultSuccess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IAudioIn::RegisterBufferEvent(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
|
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
rb.Push(ResultSuccess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void IAudioIn::AppendAudioInBufferAuto(Kernel::HLERequestContext& ctx) {
|
|
|
|
|
LOG_WARNING(Service_Audio, "(STUBBED) called");
|
|
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2};
|
|
|
|
|
rb.Push(ResultSuccess);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AudInU::AudInU(Core::System& system_) : ServiceFramework{system_, "audin:u"} {
|
|
|
|
|
// clang-format off
|
|
|
|
|