Code clean up.

This commit is contained in:
2015-09-22 05:27:10 +01:00
parent ac31fdcafb
commit 83329a0e86
4 changed files with 74 additions and 12 deletions

View File

@@ -1,3 +1,10 @@
2015-09-22 Natalia Portillo <claunia@claunia.com>
* Program.cs:
* Subchannel.cs:
* SubChannelDecoder.sln:
Code clean up.
2015-09-22 Natalia Portillo <claunia@claunia.com> 2015-09-22 Natalia Portillo <claunia@claunia.com>
* Program.cs: * Program.cs:

View File

@@ -1,6 +1,28 @@
using System; //
// Program.cs
//
// Author:
// Natalia Portillo <claunia@claunia.com>
//
// Copyright (c) 2015 © Claunia.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
using System;
using System.IO; using System.IO;
using System.Text;
namespace SubChannelDecoder namespace SubChannelDecoder
{ {
@@ -16,7 +38,7 @@ namespace SubChannelDecoder
const int QMode5 = 0x05; const int QMode5 = 0x05;
static readonly char[] ISRCTable = static readonly char[] ISRCTable =
{ {
'0', '1', '2', '3', '4', '5', '0', '1', '2', '3', '4', '5',
'6', '7', '8', '9', 'A', 'B', '6', '7', '8', '9', 'A', 'B',
'C', 'D', 'E', 'F', 'G', 'H', 'C', 'D', 'E', 'F', 'G', 'H',

View File

@@ -14,4 +14,16 @@ Global
{F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.ActiveCfg = Release|x86 {F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.ActiveCfg = Release|x86
{F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.Build.0 = Release|x86 {F596C10C-76EB-43BA-859D-C34191B02A2C}.Release|x86.Build.0 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.StandardHeader = $1
$1.Text = @\n ${FileName}\n \n Author:\n ${AuthorName} <${AuthorEmail}>\n\n Copyright (c) ${Year} ${CopyrightHolder}\n\n This program is free software; you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation; either version 2 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n \n You should have received a copy of the GNU General Public License\n along with this program; if not, write to the Free Software\n Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n
$1.IncludeInNewFiles = True
$0.ChangeLogPolicy = $2
$2.UpdateMode = ProjectRoot
$2.MessageStyle = $3
$3.LastFilePostfix = "@:\n "
$3.IncludeDirectoryPaths = True
$2.inheritsSet = Mono
EndGlobalSection
EndGlobal EndGlobal

View File

@@ -1,4 +1,25 @@
using System; //
// Subchannel.cs
//
// Author:
// Natalia Portillo <claunia@claunia.com>
//
// Copyright (c) 2015 © Claunia.com
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
namespace SubChannelDecoder namespace SubChannelDecoder
{ {
@@ -15,14 +36,14 @@ namespace SubChannelDecoder
public Subchannel() public Subchannel()
{ {
this.p = new byte[12]; p = new byte[12];
this.q = new byte[12]; q = new byte[12];
this.r = new byte[12]; r = new byte[12];
this.s = new byte[12]; s = new byte[12];
this.t = new byte[12]; t = new byte[12];
this.u = new byte[12]; u = new byte[12];
this.v = new byte[12]; v = new byte[12];
this.w = new byte[12]; w = new byte[12];
} }
} }
} }