-
Notifications
You must be signed in to change notification settings - Fork 7
/
cdirip.h
74 lines (54 loc) · 1.79 KB
/
cdirip.h
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef __CDIRIP_H__
#define __CDIRIP_H__
#define true 1
#define false 0
#define DEFAULT_FORMAT 0
#define ISO_FORMAT 1
#define BIN_FORMAT 2
#define MAC_FORMAT 3
#define WAV_FORMAT 0
#define RAW_FORMAT 1
#define CDA_FORMAT 2
#define AIFF_FORMAT 3
#define SHOW_INTERVAL 2000
#define READ_BUF_SIZE 1024*1024
#define WRITE_BUF_SIZE 1024*1024
typedef struct opts_s
{
char showinfo;
char cutfirst;
char cutall;
char convert;
char fulldata;
char audio;
char swap;
char showspeed;
char pregap;
} opts_s;
typedef struct flags_s
{
char ask_for_image;
char ask_for_dest_path;
char do_cut;
char do_convert;
char create_cuesheet;
char save_as_iso;
} flags_s;
void savetrack(FILE *fsource, image_s *, track_s *, opts_s *, flags_s *);
void savecuesheet(FILE *fcuesheet, image_s *, track_s *, opts_s *, flags_s *);
void show_counter(unsigned long i, long track_length, unsigned long image_length, long pos);
#ifdef _WIN32
int askfilename(char *string);
int askpath(char *sz_buf);
void show_speed (unsigned long sector_size, LARGE_INTEGER Frequency, LARGE_INTEGER *old_count);
#endif
// Strings
static char STR_TDISC_CUE_FILENAME [ ] = "tdisc.cue";
static char STR_TDISCN_CUE_FILENAME [ ] = "tdisc%d.cue";
static char STR_TAUDIO_RAW_FILENAME [ ] = "taudio%02d.raw";
static char STR_TAUDIO_WAV_FILENAME [ ] = "taudio%02d.wav";
static char STR_TAUDIO_CDA_FILENAME [ ] = "taudio%02d.cda";
static char STR_TAUDIO_AIFF_FILENAME [ ] = "taudio%02d.aiff";
static char STR_TDATA_ISO_FILENAME [ ] = "tdata%02d.iso";
static char STR_TDATA_BIN_FILENAME [ ] = "tdata%02d.bin";
#endif