service/dsp: Clean up global state

This commit is contained in:
NarcolepticK 2018-07-24 15:54:33 -04:00
parent 14878a17d9
commit b840c63386
5 changed files with 39 additions and 24 deletions

View file

@ -11,6 +11,12 @@
#include "common/common_types.h"
#include "core/memory.h"
namespace Service {
namespace DSP {
class DSP_DSP;
} // namespace DSP
} // namespace Service
namespace AudioCore {
class Sink;
@ -60,6 +66,9 @@ public:
/// Returns a reference to the array backing DSP memory
virtual std::array<u8, Memory::DSP_RAM_SIZE>& GetDspMemory() = 0;
/// Sets the dsp class that we trigger interrupts for
virtual void SetDspToInterrupt(std::shared_ptr<Service::DSP::DSP_DSP> dsp) = 0;
/// Select the sink to use based on sink id.
void SetSink(const std::string& sink_id, const std::string& audio_device);
/// Get the current sink