Code cleanup

This commit is contained in:
2015-10-02 06:03:34 +01:00
parent 606b2c76aa
commit 2af0e02f59
4 changed files with 23 additions and 15 deletions

View File

@@ -41,19 +41,19 @@ namespace SubChannelDecoder
static readonly char[] ISRCTable =
{
'0', '1', '2', '3', '4',
'5', '6', '7', '8', '9',
' ', ' ', ' ', ' ', ' ',
' ', ' ', 'A', 'B', 'C',
'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z'
};
'0', '1', '2', '3', '4',
'5', '6', '7', '8', '9',
' ', ' ', ' ', ' ', ' ',
' ', ' ', 'A', 'B', 'C',
'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W',
'X', 'Y', 'Z'
};
static readonly char[] BCDTable =
{
{
'0', '1', '2', '3',
'4', '5', '6', '7',
'8', '9', 'A', 'B',
@@ -112,6 +112,7 @@ namespace SubChannelDecoder
Subchannel sub = UnpackSubchannel(sectorBytes, interleaved);
Console.WriteLine("Sector {0}", sector);
Console.WriteLine("\tP: 0x{0:X2}{1:X2}{2:X2}{3:X2}{4:X2}{5:X2}{6:X2}{7:X2}{8:X2}{9:X2}{10:X2}{11:X2}",
sub.p[0], sub.p[1], sub.p[2], sub.p[3], sub.p[4], sub.p[5],
sub.p[6], sub.p[7], sub.p[8], sub.p[9], sub.p[10], sub.p[11]);