DSP/HLE: move implementation of RecvData to audio_core, behind common interface

This commit is contained in:
Weiyi Wang 2018-12-06 07:18:26 -05:00
parent 6d51d95d44
commit 7f568a3c19
5 changed files with 34 additions and 25 deletions

View file

@ -32,8 +32,13 @@ public:
DspInterface& operator=(const DspInterface&) = delete;
DspInterface& operator=(DspInterface&&) = delete;
/// Get the state of the DSP
virtual DspState GetDspState() const = 0;
/**
* Reads data from one of three DSP registers
* @note this function blocks until the data is available
* @param register_number the index of the register to read
* @returns the value of the register
*/
virtual u16 RecvData(u32 register_number) = 0;
/**
* Reads `length` bytes from the DSP pipe identified with `pipe_number`.