audin_u.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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/audin_u.h"
  8. namespace Service::Audio {
  9. class IAudioIn final : public ServiceFramework<IAudioIn> {
  10. public:
  11. IAudioIn() : ServiceFramework("IAudioIn") {
  12. static const FunctionInfo functions[] = {
  13. {0, nullptr, "GetAudioInState"},
  14. {1, nullptr, "StartAudioIn"},
  15. {2, nullptr, "StopAudioIn"},
  16. {3, nullptr, "AppendAudioInBuffer"},
  17. {4, nullptr, "RegisterBufferEvent"},
  18. {5, nullptr, "GetReleasedAudioInBuffer"},
  19. {6, nullptr, "ContainsAudioInBuffer"},
  20. {7, nullptr, "AppendAudioInBufferWithUserEvent"},
  21. {8, nullptr, "AppendAudioInBufferAuto"},
  22. {9, nullptr, "GetReleasedAudioInBufferAuto"},
  23. {10, nullptr, "AppendAudioInBufferWithUserEventAuto"},
  24. {11, nullptr, "GetAudioInBufferCount"},
  25. {12, nullptr, "SetAudioInDeviceGain"},
  26. {13, nullptr, "GetAudioInDeviceGain"},
  27. };
  28. RegisterHandlers(functions);
  29. }
  30. ~IAudioIn() = default;
  31. };
  32. AudInU::AudInU() : ServiceFramework("audin:u") {
  33. static const FunctionInfo functions[] = {
  34. {0, nullptr, "ListAudioIns"},
  35. {1, nullptr, "OpenAudioIn"},
  36. {3, nullptr, "OpenAudioInAuto"},
  37. {4, nullptr, "ListAudioInsAuto"},
  38. };
  39. RegisterHandlers(functions);
  40. }
  41. } // namespace Service::Audio