dsp_dsp.h 925 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <string>
  6. #include "core/hle/service/service.h"
  7. ////////////////////////////////////////////////////////////////////////////////////////////////////
  8. // Namespace DSP_DSP
  9. namespace DSP_DSP {
  10. class Interface : public Service::Interface {
  11. public:
  12. Interface();
  13. ~Interface() override;
  14. std::string GetPortName() const override {
  15. return "dsp::DSP";
  16. }
  17. };
  18. /// Signal all audio related interrupts.
  19. void SignalAllInterrupts();
  20. /**
  21. * Signal a specific audio related interrupt based on interrupt id and channel id.
  22. * @param interrupt_id The interrupt id
  23. * @param channel_id The channel id
  24. * The significance of various values of interrupt_id and channel_id is not yet known.
  25. */
  26. void SignalInterrupt(u32 interrupt_id, u32 channel_id);
  27. } // namespace