2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2011 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// Refer to the license.txt file included.
|
2011-01-28 18:39:30 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2011-01-28 18:39:30 +00:00
|
|
|
|
2015-05-10 20:16:05 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2015-05-08 17:28:03 -04:00
|
|
|
class PointerWrap;
|
2011-01-28 18:39:30 +00:00
|
|
|
|
2011-02-02 16:34:12 +00:00
|
|
|
class DSPEmulator
|
2011-01-28 18:39:30 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-02-02 16:34:12 +00:00
|
|
|
virtual ~DSPEmulator() {}
|
2011-01-28 18:39:30 +00:00
|
|
|
|
|
|
|
virtual bool IsLLE() = 0;
|
|
|
|
|
2014-07-26 16:54:36 -04:00
|
|
|
virtual bool Initialize(bool bWii, bool bDSPThread) = 0;
|
2011-01-28 18:39:30 +00:00
|
|
|
virtual void Shutdown() = 0;
|
|
|
|
|
|
|
|
virtual void DoState(PointerWrap &p) = 0;
|
2011-12-30 20:16:12 -08:00
|
|
|
virtual void PauseAndLock(bool doLock, bool unpauseOnUnlock=true) = 0;
|
2011-01-28 18:39:30 +00:00
|
|
|
|
|
|
|
virtual void DSP_WriteMailBoxHigh(bool _CPUMailbox, unsigned short) = 0;
|
|
|
|
virtual void DSP_WriteMailBoxLow(bool _CPUMailbox, unsigned short) = 0;
|
|
|
|
virtual unsigned short DSP_ReadMailBoxHigh(bool _CPUMailbox) = 0;
|
|
|
|
virtual unsigned short DSP_ReadMailBoxLow(bool _CPUMailbox) = 0;
|
|
|
|
virtual unsigned short DSP_ReadControlRegister() = 0;
|
|
|
|
virtual unsigned short DSP_WriteControlRegister(unsigned short) = 0;
|
|
|
|
virtual void DSP_Update(int cycles) = 0;
|
|
|
|
virtual void DSP_StopSoundStream() = 0;
|
2013-04-12 12:08:05 +10:00
|
|
|
virtual u32 DSP_UpdateRate() = 0;
|
2011-01-28 18:39:30 +00:00
|
|
|
};
|
|
|
|
|
2013-04-23 07:21:48 -04:00
|
|
|
DSPEmulator *CreateDSPEmulator(bool HLE);
|