-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcd_extractor.h
More file actions
39 lines (30 loc) · 735 Bytes
/
Copy pathcd_extractor.h
File metadata and controls
39 lines (30 loc) · 735 Bytes
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
#ifndef CD_EXTRACTOR_H
#define CD_EXTRACTOR_H
#include <QObject>
#include <QFile>
#include <cdio/cdio.h>
#include <cdio/cdda.h>
#include <cdio/paranoia.h>
class CD_Extractor : public QObject
{
Q_OBJECT
private:
cdrom_drive_t *Drive;
cdrom_paranoia_t *Paranoia;
void WriteWav(int f,long bytes);
void PutNum(long num,int f,int endianness,int bytes);
long SectorsRead;
long SectorsTotal;
public:
explicit CD_Extractor(QObject *parent = 0);
void Initialize();
long Progress();
void Extract(int tracknum);
QByteArray Buffer;
signals:
void DriveFound();
void DriveNotFound();
void ExtractFinished(QString fname);
void UpdateProgress(int prog);
};
#endif // CD_EXTRACTOR_H