mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X:
A few more adjustments. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2839 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
bb80927cc3
commit
d6c2ba9a44
|
@ -127,7 +127,7 @@ bool SndBuffer::CheckUnderrunStatus( int& nSamples, int& quietSampleCount )
|
|||
quietSampleCount = 0;
|
||||
if( m_underrun_freeze )
|
||||
{
|
||||
int toFill = m_size / (timeStretchDisabled || asyncMixingEnabled ? 32 : 400);
|
||||
int toFill = m_size / (timeStretchDisabled && !asyncMixingEnabled ? 32 : 400);
|
||||
toFill = GetAlignedBufferSize( toFill );
|
||||
|
||||
// toFill is now aligned to a SndOutPacket
|
||||
|
|
|
@ -123,7 +123,7 @@ void SndBuffer::UpdateTempoChangeSoundTouch()
|
|||
|
||||
if( cTempo < 0.965f || cTempo > 1.060f ||
|
||||
pctChange < -0.38f || pctChange > 0.54f ||
|
||||
statusPct < -0.42f || statusPct > 0.49f ||
|
||||
statusPct < -0.42f || statusPct > 0.70f ||
|
||||
eTempo < 0.89f || eTempo > 1.19f )
|
||||
{
|
||||
//printf("Emergency stretch: cTempo = %f eTempo = %f pctChange = %f statusPct = %f\n",cTempo,eTempo,pctChange,statusPct);
|
||||
|
@ -208,13 +208,15 @@ void SndBuffer::UpdateTempoChangeAsyncMixing()
|
|||
lastPct = statusPct;
|
||||
if( statusPct < -0.4f )
|
||||
{
|
||||
TickInterval -= 2;
|
||||
TickInterval -= 4;
|
||||
if( TickInterval <= 200 ) TickInterval = 200;
|
||||
//printf("-- %d, %f\n",TickInterval,statusPct);
|
||||
}
|
||||
else if( statusPct > 0.4f )
|
||||
else if( statusPct > 0.5f )
|
||||
{
|
||||
TickInterval += 10;
|
||||
TickInterval += 1;
|
||||
if( TickInterval >= 7000 ) TickInterval = 7000;
|
||||
//printf("++ %d, %f\n",TickInterval,statusPct);
|
||||
}
|
||||
else TickInterval = 768;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue