aboutsummaryrefslogtreecommitdiff
path: root/src/DSi_DSP.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DSi_DSP.h')
-rw-r--r--src/DSi_DSP.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/DSi_DSP.h b/src/DSi_DSP.h
index f5264b4..5d3427f 100644
--- a/src/DSi_DSP.h
+++ b/src/DSi_DSP.h
@@ -19,13 +19,17 @@
#ifndef DSI_DSP_H
#define DSI_DSP_H
+#include "types.h"
+#include "Savestate.h"
+
// TODO: for actual sound output
// * audio callbacks
-// * SNDEXCNT
namespace DSi_DSP
{
+extern u16 SNDExCnt;
+
extern u16 DSP_PDATA;
extern u16 DSP_PADR;
extern u16 DSP_PCFG;
@@ -41,10 +45,10 @@ bool Init();
void DeInit();
void Reset();
-// TODO: needs to be called!
-// however, no DSi savestate stuff seems to be actually implemented?!
void DoSavestate(Savestate* file);
+void DSPCatchUpU32(u32 _);
+
// SCFG_RST bit0
bool IsRstReleased();
void SetRstLine(bool release);
@@ -62,6 +66,8 @@ void Write16(u32 addr, u16 val);
u32 Read32(u32 addr);
void Write32(u32 addr, u32 val);
+void WriteSNDExCnt(u16 val);
+
// NOTE: checks SCFG_CLK9
void Run(u32 cycles);