diff options
| author | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-11-07 20:01:39 +0000 |
|---|---|---|
| committer | XTra.KrazzY <XTra.KrazzY@gmail.com> | 2009-11-07 20:01:39 +0000 |
| commit | a0129e51a3fead84c91f5bd302d627ac84e36feb (patch) | |
| tree | 107111240fa8ce392da2b944bc96aca28688b657 /Source/Core/Common | |
| parent | ebaad032eb7a1f2598fa8b87c6adf2eb996ef4a8 (diff) | |
LUAInterface should have all its functionality now (excluding input/controller management). Now we need a GUI to see how it works. Added new DSP function: ClearAudioBuffer, which clears the audio buffer for pausing. Currently it doesn't work with DSound.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4507 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/PluginDSP.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/Common/Src/PluginDSP.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/PluginDSP.cpp b/Source/Core/Common/Src/PluginDSP.cpp index 062986f2df..965d7c8792 100644 --- a/Source/Core/Common/Src/PluginDSP.cpp +++ b/Source/Core/Common/Src/PluginDSP.cpp @@ -40,6 +40,8 @@ PluginDSP::PluginDSP(const char *_Filename) (LoadSymbol("DSP_SendAIBuffer")); DSP_StopSoundStream = reinterpret_cast<TDSP_StopSoundStream> (LoadSymbol("DSP_StopSoundStream")); + DSP_ClearAudioBuffer = reinterpret_cast<TDSP_ClearAudioBuffer> + (LoadSymbol("DSP_ClearAudioBuffer")); if ((DSP_ReadMailboxHigh != 0) && (DSP_ReadMailboxLow != 0) && @@ -49,7 +51,8 @@ PluginDSP::PluginDSP(const char *_Filename) (DSP_WriteControlRegister != 0) && (DSP_SendAIBuffer != 0) && (DSP_Update != 0) && - (DSP_StopSoundStream != 0)) + (DSP_StopSoundStream != 0) && + (DSP_ClearAudioBuffer != 0)) validDSP = true; } diff --git a/Source/Core/Common/Src/PluginDSP.h b/Source/Core/Common/Src/PluginDSP.h index 5be6e00ffe..6341771a3d 100644 --- a/Source/Core/Common/Src/PluginDSP.h +++ b/Source/Core/Common/Src/PluginDSP.h @@ -30,6 +30,7 @@ typedef unsigned short (__cdecl* TDSP_WriteControlRegister)(unsigned short); typedef void (__cdecl *TDSP_SendAIBuffer)(unsigned int address, int sample_rate); typedef void (__cdecl *TDSP_Update)(int cycles); typedef void (__cdecl *TDSP_StopSoundStream)(); +typedef void (__cdecl *TDSP_ClearAudioBuffer)(); class PluginDSP : public CPlugin { @@ -47,6 +48,7 @@ public: TDSP_SendAIBuffer DSP_SendAIBuffer; TDSP_Update DSP_Update; TDSP_StopSoundStream DSP_StopSoundStream; + TDSP_ClearAudioBuffer DSP_ClearAudioBuffer; private: bool validDSP; |
