2014-10-29 21:38:33 -04:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 00:38:14 -05:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-10-29 21:38:33 -04:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-06-27 12:56:17 -04:00
|
|
|
#include <string>
|
|
|
|
|
2014-10-29 21:38:33 -04:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Namespace DSP_DSP
|
|
|
|
|
|
|
|
namespace DSP_DSP {
|
|
|
|
|
|
|
|
class Interface : public Service::Interface {
|
|
|
|
public:
|
|
|
|
Interface();
|
2015-07-17 01:24:13 -04:00
|
|
|
~Interface() override;
|
2014-12-21 14:52:10 -05:00
|
|
|
|
2014-11-12 16:13:08 -05:00
|
|
|
std::string GetPortName() const override {
|
2014-11-26 00:39:36 -05:00
|
|
|
return "dsp::DSP";
|
2014-10-29 21:38:33 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-02-21 08:13:52 -05:00
|
|
|
/// Signal all audio related interrupts.
|
|
|
|
void SignalAllInterrupts();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Signal a specific audio related interrupt based on interrupt id and channel id.
|
|
|
|
* @param interrupt_id The interrupt id
|
|
|
|
* @param channel_id The channel id
|
|
|
|
* The significance of various values of interrupt_id and channel_id is not yet known.
|
|
|
|
*/
|
|
|
|
void SignalInterrupt(u32 interrupt_id, u32 channel_id);
|
2015-01-05 00:19:28 -05:00
|
|
|
|
2014-10-29 21:38:33 -04:00
|
|
|
} // namespace
|