dolphin/Source/Core/Core/DSPEmulator.h

39 lines
1.0 KiB
C++

// Copyright 2011 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include "Common/CommonTypes.h"
class PointerWrap;
class DSPEmulator
{
public:
virtual ~DSPEmulator();
virtual bool IsLLE() const = 0;
virtual bool Initialize(bool wii, bool dsp_thread) = 0;
virtual void Shutdown() = 0;
virtual void DoState(PointerWrap& p) = 0;
virtual void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) = 0;
virtual void DSP_WriteMailBoxHigh(bool cpu_mailbox, u16 value) = 0;
virtual void DSP_WriteMailBoxLow(bool cpu_mailbox, u16 value) = 0;
virtual u16 DSP_ReadMailBoxHigh(bool cpu_mailbox) = 0;
virtual u16 DSP_ReadMailBoxLow(bool cpu_mailbox) = 0;
virtual u16 DSP_ReadControlRegister() = 0;
virtual u16 DSP_WriteControlRegister(u16 value) = 0;
virtual void DSP_Update(int cycles) = 0;
virtual void DSP_StopSoundStream() = 0;
virtual u32 DSP_UpdateRate() = 0;
protected:
bool m_wii = false;
};
std::unique_ptr<DSPEmulator> CreateDSPEmulator(bool hle);