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

@ -1978,10 +1978,11 @@ void StartVoices(int core, u32 value)
Cores[core].Voices[vc].Start();
if (IsDevBuild)
{
if (MsgKeyOnOff())
{
V_Voice& thisvc(Cores[core].Voices[vc]);
if (MsgKeyOnOff())
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) ? "+" : "-",
@ -1993,6 +1994,7 @@ void StartVoices(int core, u32 value)
}
}
}
}
void StopVoices(int core, u32 value)
{