audrec_u.cpp 1.5 KB

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