SPU2: Cleanup variable scope.

Codacy
This commit is contained in:
lightningterror 2022-06-24 17:57:21 +02:00
parent f99106ccb1
commit 72218929b9
1 changed files with 4 additions and 2 deletions

View File

@ -1979,9 +1979,10 @@ void StartVoices(int core, u32 value)
if (IsDevBuild)
{
V_Voice& thisvc(Cores[core].Voices[vc]);
if (MsgKeyOnOff())
{
V_Voice& thisvc(Cores[core].Voices[vc]);
ConLog("* SPU2: KeyOn: C%dV%02d: SSA: %8x; M: %s%s%s%s; H: %04x; P: %04x V: %04x/%04x; ADSR: %04x%04x\n",
core, vc, thisvc.StartA,
(Cores[core].VoiceGates[vc].DryL) ? "+" : "-", (Cores[core].VoiceGates[vc].DryR) ? "+" : "-",
@ -1990,6 +1991,7 @@ void StartVoices(int core, u32 value)
thisvc.Pitch,
thisvc.Volume.Left.Value >> 16, thisvc.Volume.Right.Value >> 16,
thisvc.ADSR.regADSR1, thisvc.ADSR.regADSR2);
}
}
}
}