2014-10-30 01:38:33 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-30 01:38:33 +00:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-06-27 16:56:17 +00:00
|
|
|
#include <string>
|
2014-10-30 01:38:33 +00:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2017-12-20 18:44:32 +00:00
|
|
|
namespace AudioCore {
|
2016-04-24 09:21:10 +00:00
|
|
|
enum class DspPipe;
|
|
|
|
}
|
|
|
|
|
2016-12-10 12:51:50 +00:00
|
|
|
namespace Service {
|
2014-10-30 01:38:33 +00:00
|
|
|
namespace DSP_DSP {
|
|
|
|
|
2016-12-10 12:51:50 +00:00
|
|
|
class Interface final : public Service::Interface {
|
2014-10-30 01:38:33 +00:00
|
|
|
public:
|
|
|
|
Interface();
|
2015-07-17 05:24:13 +00:00
|
|
|
~Interface() override;
|
2014-12-21 19:52:10 +00:00
|
|
|
|
2014-11-12 21:13:08 +00:00
|
|
|
std::string GetPortName() const override {
|
2014-11-26 05:39:36 +00:00
|
|
|
return "dsp::DSP";
|
2014-10-30 01:38:33 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
/**
|
2016-04-24 09:21:10 +00:00
|
|
|
* Signal a specific DSP related interrupt of type == InterruptType::Pipe, pipe == pipe.
|
|
|
|
* @param pipe The DSP pipe for which to signal an interrupt for.
|
2016-02-21 13:13:52 +00:00
|
|
|
*/
|
2017-12-20 18:44:32 +00:00
|
|
|
void SignalPipeInterrupt(AudioCore::DspPipe pipe);
|
2015-01-05 05:19:28 +00:00
|
|
|
|
2016-04-24 09:21:10 +00:00
|
|
|
} // namespace DSP_DSP
|
2016-12-10 12:51:50 +00:00
|
|
|
} // namespace Service
|