audrec_u.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/hle/ipc_helpers.h"
  6. #include "core/hle/kernel/hle_ipc.h"
  7. #include "core/hle/service/audio/audrec_u.h"
  8. namespace Service::Audio {
  9. class IFinalOutputRecorder final : public ServiceFramework<IFinalOutputRecorder> {
  10. public:
  11. IFinalOutputRecorder() : ServiceFramework("IFinalOutputRecorder") {
  12. // clang-format off
  13. static const FunctionInfo functions[] = {
  14. {0, nullptr, "GetFinalOutputRecorderState"},
  15. {1, nullptr, "StartFinalOutputRecorder"},
  16. {2, nullptr, "StopFinalOutputRecorder"},
  17. {3, nullptr, "AppendFinalOutputRecorderBuffer"},
  18. {4, nullptr, "RegisterBufferEvent"},
  19. {5, nullptr, "GetReleasedFinalOutputRecorderBuffer"},
  20. {6, nullptr, "ContainsFinalOutputRecorderBuffer"},
  21. {7, nullptr, "GetFinalOutputRecorderBufferEndTime"},
  22. {8, nullptr, "AppendFinalOutputRecorderBufferAuto"},
  23. {9, nullptr, "GetReleasedFinalOutputRecorderBufferAuto"},
  24. {10, nullptr, "FlushFinalOutputRecorderBuffers"},
  25. };
  26. // clang-format on
  27. RegisterHandlers(functions);
  28. }
  29. ~IFinalOutputRecorder() = default;
  30. };
  31. AudRecU::AudRecU() : ServiceFramework("audrec:u") {
  32. static const FunctionInfo functions[] = {
  33. {0, nullptr, "OpenFinalOutputRecorder"},
  34. };
  35. RegisterHandlers(functions);
  36. }
  37. AudRecU::~AudRecU() = default;
  38. } // namespace Service::Audio