Fixe the dsp (winamp plugin) crashes. Thanks to Gigaherz for this one, too :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1739 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-09-04 22:39:21 +00:00
parent f06998808a
commit 00e1ac1cfb
2 changed files with 1 additions and 4 deletions

View File

@ -296,7 +296,6 @@ void SndBuffer::Cleanup()
}
int SndBuffer::m_dsp_progress = 0;
int SndBuffer::m_dsp_writepos = 0;
int SndBuffer::m_timestretch_progress = 0;
int SndBuffer::ssFreeze = 0;
@ -333,7 +332,7 @@ void SndBuffer::Write( const StereoOut32& Sample )
{
// Convert in, send to winamp DSP, and convert out.
for( int i=0; i<SndOutPacketSize; ++i, ++m_dsp_writepos ) { sndTempBuffer16[m_dsp_writepos] = sndTempBuffer[i].DownSample(); }
for( int i=0; i<SndOutPacketSize; ++i ) { sndTempBuffer16[i] = sndTempBuffer[i].DownSample(); }
m_dsp_progress += DspProcess( (s16*)sndTempBuffer16, SndOutPacketSize );
// Some ugly code to ensure full packet handling:
@ -386,4 +385,3 @@ void SndBuffer::Configure(uptr parent, u32 module )
mods[module]->Configure(parent);
}

View File

@ -355,7 +355,6 @@ private:
static int sndTempProgress;
static int m_dsp_progress;
static int m_dsp_writepos;
static int m_timestretch_progress;
static int m_timestretch_writepos;