mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Fixed a screwup from the previous commit. A bit of code cleanup got lost in translation. ;)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@511 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
24ed5ac12e
commit
54baa99158
|
@ -183,10 +183,11 @@ static void __forceinline __fastcall GetNextDataBuffered( V_Core& thiscore, V_Vo
|
|||
{
|
||||
if(vc.LoopFlags & XAFLAG_LOOP_END)
|
||||
{
|
||||
thiscore.Regs.ENDX |= (1 << voice);
|
||||
|
||||
if( vc.LoopFlags & XAFLAG_LOOP )
|
||||
{
|
||||
vc.NextA=vc.LoopStartA;
|
||||
thiscore.Regs.ENDX|=1<<voice;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -331,6 +332,7 @@ static __forceinline void CalculateADSR( V_Core& thiscore, V_Voice& vc )
|
|||
DebugCores[core].Voices[voice].lastStopReason = 2;
|
||||
}
|
||||
vc.Stop();
|
||||
thiscore.Regs.ENDX |= (1 << voice);
|
||||
}
|
||||
|
||||
jASSUME( vc.ADSR.Value >= 0 ); // ADSR should never be negative...
|
||||
|
|
|
@ -239,7 +239,6 @@ void V_Voice::Stop()
|
|||
{
|
||||
ADSR.Value = 0;
|
||||
ADSR.Phase = 0;
|
||||
//Cores[core].Regs.ENDX|=(1<<vc);
|
||||
}
|
||||
|
||||
static const int TickInterval = 768;
|
||||
|
|
Loading…
Reference in New Issue