| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |
}; |