summaryrefslogtreecommitdiff
path: root/plugins/dfsound
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-12 19:40:47 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-12 19:40:47 +0000
commiteb27bacdefae4f130fe6f28487409a309f33390d (patch)
tree65829dfacd6265e5380ccfd80f9e5a28f48e01b3 /plugins/dfsound
parent67151dd87b5c5fb4c66a9b6d4976b6e34be179ab (diff)
downloadpcsxr-eb27bacdefae4f130fe6f28487409a309f33390d.tar.gz
Fixing inlines to be either static inline or extern inline as the case may be.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72221 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfsound')
-rw-r--r--plugins/dfsound/adsr.c4
-rw-r--r--plugins/dfsound/adsr.h4
-rw-r--r--plugins/dfsound/cfg.h2
-rw-r--r--plugins/dfsound/reverb.c12
-rw-r--r--plugins/dfsound/reverb.h11
-rw-r--r--plugins/dfsound/xa.c8
-rw-r--r--plugins/dfsound/xa.h6
7 files changed, 20 insertions, 27 deletions
diff --git a/plugins/dfsound/adsr.c b/plugins/dfsound/adsr.c
index 4eb3748c..e13b2827 100644
--- a/plugins/dfsound/adsr.c
+++ b/plugins/dfsound/adsr.c
@@ -142,7 +142,7 @@ void InitADSR(void) // INIT ADSR
////////////////////////////////////////////////////////////////////////
-void StartADSR(int ch) // MIX ADSR
+extern INLINE void StartADSR(int ch) // MIX ADSR
{
s_chan[ch].ADSRX.lVolume=1; // and init some adsr vars
s_chan[ch].ADSRX.State=0;
@@ -152,7 +152,7 @@ void StartADSR(int ch) // MIX ADSR
////////////////////////////////////////////////////////////////////////
-int MixADSR(int ch) // MIX ADSR
+extern INLINE int MixADSR(int ch) // MIX ADSR
{
int EnvelopeVol = s_chan[ch].ADSRX.EnvelopeVol;
int EnvelopeVol_f = s_chan[ch].ADSRX.EnvelopeVol_f;
diff --git a/plugins/dfsound/adsr.h b/plugins/dfsound/adsr.h
index 47f38abd..0251cf11 100644
--- a/plugins/dfsound/adsr.h
+++ b/plugins/dfsound/adsr.h
@@ -15,5 +15,5 @@
* *
***************************************************************************/
-extern void StartADSR(int ch);
-extern int MixADSR(int ch);
+extern INLINE void StartADSR(int ch);
+extern INLINE int MixADSR(int ch);
diff --git a/plugins/dfsound/cfg.h b/plugins/dfsound/cfg.h
index d26c116e..b052b2d9 100644
--- a/plugins/dfsound/cfg.h
+++ b/plugins/dfsound/cfg.h
@@ -20,8 +20,6 @@ void ReadConfig(void);
#ifdef _WINDOWS
BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK DSoundDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);
-#elif defined (_MACOSX)
-#include "maccfg.h"
#else
void StartCfgTool(char * pCmdLine);
#endif
diff --git a/plugins/dfsound/reverb.c b/plugins/dfsound/reverb.c
index e0746006..3ec38f24 100644
--- a/plugins/dfsound/reverb.c
+++ b/plugins/dfsound/reverb.c
@@ -63,7 +63,7 @@ void SetREVERB(unsigned short val)
// START REVERB
////////////////////////////////////////////////////////////////////////
-void StartREVERB(int ch)
+extern INLINE void StartREVERB(int ch)
{
if(s_chan[ch].bReverb && (spuCtrl&0x80)) // reverb possible?
{
@@ -84,7 +84,7 @@ void StartREVERB(int ch)
// HELPER FOR NEILL'S REVERB: re-inits our reverb mixing buf
////////////////////////////////////////////////////////////////////////
-void InitREVERB(void)
+static INLINE void InitREVERB(void)
{
if(iUseReverb==2)
{memset(sRVBStart,0,NSSIZE*2*4);}
@@ -94,7 +94,7 @@ void InitREVERB(void)
// STORE REVERB
////////////////////////////////////////////////////////////////////////
-void StoreREVERB_CD(int left, int right,int ns)
+static INLINE void StoreREVERB_CD(int left, int right,int ns)
{
if(iUseReverb==0) return;
else
@@ -112,7 +112,7 @@ void StoreREVERB_CD(int left, int right,int ns)
}
-void StoreREVERB(int ch,int ns)
+extern INLINE void StoreREVERB(int ch,int ns)
{
if(iUseReverb==0) return;
else
@@ -184,7 +184,7 @@ static INLINE void s_buffer1(int iOff,int iVal) // set_buffer (+1
////////////////////////////////////////////////////////////////////////
-int MixREVERBLeft(int ns)
+static INLINE int MixREVERBLeft(int ns)
{
if(iUseReverb==0) return 0;
else
@@ -291,7 +291,7 @@ int MixREVERBLeft(int ns)
////////////////////////////////////////////////////////////////////////
-int MixREVERBRight(void)
+static INLINE int MixREVERBRight(void)
{
if(iUseReverb==0) return 0;
else
diff --git a/plugins/dfsound/reverb.h b/plugins/dfsound/reverb.h
index 3a5cb9b3..c3a5826b 100644
--- a/plugins/dfsound/reverb.h
+++ b/plugins/dfsound/reverb.h
@@ -15,10 +15,7 @@
* *
***************************************************************************/
-extern void SetREVERB(unsigned short val);
-extern void InitREVERB(void);
-extern void StartREVERB(int ch);
-extern void StoreREVERB(int ch,int ns);
-extern void StoreREVERB_CD(int left, int right,int ns);
-extern int MixREVERBLeft(int ns);
-extern int MixREVERBRight(void);
+void SetREVERB(unsigned short val);
+extern INLINE void StartREVERB(int ch);
+extern INLINE void StoreREVERB(int ch,int ns);
+
diff --git a/plugins/dfsound/xa.c b/plugins/dfsound/xa.c
index 4f78eb00..6dd689be 100644
--- a/plugins/dfsound/xa.c
+++ b/plugins/dfsound/xa.c
@@ -45,7 +45,6 @@ uint32_t * CDDAEnd = NULL;
int iLeftXAVol = 0x8000;
int iRightXAVol = 0x8000;
-#if 0
static int gauss_ptr = 0;
static int gauss_window[8] = {0, 0, 0, 0, 0, 0, 0, 0};
@@ -53,7 +52,6 @@ static int gauss_window[8] = {0, 0, 0, 0, 0, 0, 0, 0};
#define gvall(x) gauss_window[(gauss_ptr+x)&3]
#define gvalr0 gauss_window[4+gauss_ptr]
#define gvalr(x) gauss_window[4+((gauss_ptr+x)&3)]
-#endif
long cdxa_dbuf_ptr;
@@ -64,7 +62,7 @@ long cdxa_dbuf_ptr;
static int lastxa_lc, lastxa_rc;
static int lastcd_lc, lastcd_rc;
-void MixXA(void)
+extern INLINE void MixXA(void)
{
int ns;
int lc,rc;
@@ -262,7 +260,7 @@ unsigned long timeGetTime_spu()
// FEED XA
////////////////////////////////////////////////////////////////////////
-void FeedXA(xa_decode_t *xap)
+extern INLINE void FeedXA(xa_decode_t *xap)
{
int sinc,spos,i,iSize,iPlace;
@@ -453,7 +451,7 @@ void FeedXA(xa_decode_t *xap)
unsigned int cdda_ptr;
-void FeedCDDA(unsigned char *pcm, int nBytes)
+extern INLINE void FeedCDDA(unsigned char *pcm, int nBytes)
{
while(nBytes>0)
{
diff --git a/plugins/dfsound/xa.h b/plugins/dfsound/xa.h
index 06ff990c..b28e6f7a 100644
--- a/plugins/dfsound/xa.h
+++ b/plugins/dfsound/xa.h
@@ -15,6 +15,6 @@
* *
***************************************************************************/
-extern void MixXA(void);
-extern void FeedXA(xa_decode_t *xap);
-extern void FeedCDDA(unsigned char *pcm, int nBytes);
+extern INLINE void MixXA(void);
+extern INLINE void FeedXA(xa_decode_t *xap);
+extern INLINE void FeedCDDA(unsigned char *pcm, int nBytes);