Debian Codegraph @

components/verifier/accuraterip/algorithm.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2021 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #include <boca.h>
14
15 namespace BoCA
16 {
17 class Algorithm
18 {
19 constants:
20 static const UnsignedInt samplesPerSector = 588;
21 private:
22 UnsignedInt32 arCRCv1;
23 UnsignedInt32 arCRCv2;
24
25 UnsignedInt32 arStartPos;
26 UnsignedInt32 arEndPos;
27 UnsignedInt32 arPosMulti;
28 public:
29 Algorithm();
30 ~Algorithm();
31
32 Bool Init(const Track &track);
33
34 Int ProcessData(Buffer<UnsignedByte> &);
35
36 static String CalculateDiscID(const MCDI &);
37 accessors:
38 UnsignedInt32 GetCRCv1() const { return arCRCv1; }
39 UnsignedInt32 GetCRCv2() const { return arCRCv2; }
40 };
41 };