csnd_snd.h 714 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "core/hle/service/service.h"
  6. namespace Service {
  7. namespace CSND {
  8. class CSND_SND final : public Interface {
  9. public:
  10. CSND_SND();
  11. std::string GetPortName() const override {
  12. return "csnd:SND";
  13. }
  14. };
  15. struct Type0Command {
  16. // command id and next command offset
  17. u32 command_id;
  18. u32 finished;
  19. u32 flags;
  20. u8 parameters[20];
  21. };
  22. void Initialize(Interface* self);
  23. void ExecuteType0Commands(Interface* self);
  24. void AcquireSoundChannels(Interface* self);
  25. void Shutdown(Interface* self);
  26. } // namespace CSND
  27. } // namespace Service