blob: f1a5ae8747cdd5571fee8d34e9ece8cb1656035c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/***************************************************************************
paranoia.h - description
-------------------
copyright : (C) 2002-2006 by Christophe Thommeret
email : [email protected]
modified : 2006 Daniel Faust <[email protected]>
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef PARANOIA_H
#define PARANOIA_H
#include <qstringlist.h>
extern "C"
{
#include <cdda_interface.h>
#include <cdda_paranoia.h>
}
class Paranoia
{
public:
Paranoia();
bool init( QString dev );
~Paranoia();
long getTracks();
long trackTime( int t );
int trackFirstSector( int t );
int discFirstSector();
int discLastSector();
private:
bool findCdrom();
bool procCdrom( QString name );
bool initTrack( int t );
void setMode( int mode );
bool isAudio( int t );
QString trackSize( int t );
long trackSectorSize( int t );
long nTracks;
cdrom_drive *d;
cdrom_paranoia *p;
long currentSector, endOfTrack;
int paraMode;
int progress;
};
#endif
|