Remove goto from PCESoundDebugger.UpdateAfter

This commit is contained in:
YoshiRulz 2021-03-26 10:43:20 +10:00
parent 5daed21990
commit c6dcb71d92
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 11 additions and 9 deletions

View File

@ -63,24 +63,31 @@ namespace BizHawk.Client.EmuHawk
lvChannels.Items[i].SubItems[1].Text = "-"; lvChannels.Items[i].SubItems[1].Text = "-";
lvChannels.Items[i].SubItems[2].Text = "-"; lvChannels.Items[i].SubItems[2].Text = "-";
lvChannels.Items[i].SubItems[3].Text = "(disabled)"; lvChannels.Items[i].SubItems[3].Text = "(disabled)";
goto DEAD; _lastSamples[i] = null;
continue;
} }
if (ch.DDA) if (ch.DDA)
{ {
lvChannels.Items[i].SubItems[1].Text = "-"; lvChannels.Items[i].SubItems[1].Text = "-";
lvChannels.Items[i].SubItems[2].Text = "-"; lvChannels.Items[i].SubItems[2].Text = "-";
lvChannels.Items[i].SubItems[3].Text = "(DDA)"; lvChannels.Items[i].SubItems[3].Text = "(DDA)";
goto DEAD; _lastSamples[i] = null;
continue;
} }
lvChannels.Items[i].SubItems[1].Text = ch.Volume.ToString(); lvChannels.Items[i].SubItems[1].Text = ch.Volume.ToString();
lvChannels.Items[i].SubItems[2].Text = ch.Frequency.ToString(); lvChannels.Items[i].SubItems[2].Text = ch.Frequency.ToString();
if (ch.NoiseChannel) if (ch.NoiseChannel)
{ {
lvChannels.Items[i].SubItems[3].Text = "(noise)"; lvChannels.Items[i].SubItems[3].Text = "(noise)";
goto DEAD; _lastSamples[i] = null;
continue;
} }
if (ch.Volume == 0) goto DEAD; if (ch.Volume == 0)
{
_lastSamples[i] = null;
continue;
}
lvChannels.Items[i].SubItems[3].Text = "-"; lvChannels.Items[i].SubItems[3].Text = "-";
@ -135,11 +142,6 @@ namespace BizHawk.Client.EmuHawk
} }
lvChannels.Items[i].SubItems[3].Text = _psgEntryTable[md5].Name; lvChannels.Items[i].SubItems[3].Text = _psgEntryTable[md5].Name;
continue;
DEAD:
_lastSamples[i] = null;
} }
if (sync) if (sync)