From d6f2a0f2e983ed21ee09cdd7b54d8090a431d38f Mon Sep 17 00:00:00 2001 From: John Peterson Date: Tue, 11 Nov 2008 23:55:59 +0000 Subject: [PATCH] I could write a comment to since I'm at it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1136 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HW/DSP.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/Core/Src/HW/DSP.cpp b/Source/Core/Core/Src/HW/DSP.cpp index ebd10b0ff9..35e01eac32 100644 --- a/Source/Core/Core/Src/HW/DSP.cpp +++ b/Source/Core/Core/Src/HW/DSP.cpp @@ -612,6 +612,11 @@ void Update_ARAM_DMA() GenerateDSPInterrupt(INT_ARAM); } +// ============================================================= +// This is how it works: The game has written sound to RAM, the DSP will read it with +// this function. SamplePos in the plugin is double the value given here because it +// works on a nibble level. +// ------------------- u8 ReadARAM(u32 _iAddress) { //LOGV(DSPINTERFACE, 0, "ARAM (r) 0x%08x", _iAddress); @@ -631,6 +636,8 @@ u8* GetARAMPtr() { return g_ARAM; } +// =================== + void WriteARAM(u8 _iValue, u32 _iAddress) {