28#ifndef CDIO__PARANOIA__CDDA_H_
29#define CDIO__PARANOIA__CDDA_H_
59 MAXTRK = (CDIO_CD_MAX_TRACKS+1)
68#define MAXTRK (CDIO_CD_MAX_TRACKS+1)
170#define CDDA_TEST_ALWAYS_JITTER 4
173#define CDDA_TEST_FRAG_SMALL (1<<3)
174#define CDDA_TEST_FRAG_LARGE (2<<3)
175#define CDDA_TEST_FRAG_MASSIVE (3<<3)
178#define CDDA_TEST_UNDERRUN 64
180#if TESTING_IS_FINISHED
183#define CDDA_TEST_SCRATCH 128
184#undef CDDA_TEST_BOGUS_BYTES 256
185#undef CDDA_TEST_DROPDUPE_BYTES 512
198 char **ppsz_message);
209 char **ppsz_message);
221 int messagedest,
char **ppsz_messages);
274 lsn_t beginsector,
long sectors);
277 lsn_t beginsector,
long sectors,
int *milliseconds);
356#ifdef NEED_STRERROR_TR
357const char *strerror_tr[]={
359 "Error writing packet command to device",
360 "Error reading command from device",
361 "SCSI packet data underrun (too little data)",
362 "SCSI packet data overrun (too much data)",
363 "Illegal SCSI request (rejected by target)",
364 "Medium reading data from medium",
367 "Target hardware fault",
369 "Drive lost streaming"
404#ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY
406#define cdda_find_a_cdrom cdio_cddap_find_a_cdrom
407#define cdda_identify cdio_cddap_identify
408#define cdda_version cdio_cddap_version
409#define cdda_speed_set cdio_cddap_speed_set
410#define cdda_verbose_set cdio_cddap_verbose_set
411#define cdda_messages cdio_cddap_messages
412#define cdda_errors cdio_cddap_errors
413#define cdda_close cdio_cddap_close
414#define cdda_open cdio_cddap_open
415#define cdda_read cdio_cddap_read
416#define cdda_read_timed cdio_cddap_read_timed
417#define cdda_track_firstsector cdio_cddap_track_firstsector
418#define cdda_track_lastsector cdio_cddap_track_lastsector
419#define cdda_tracks cdio_cddap_tracks
420#define cdda_sector_gettrack cdio_cddap_sector_gettrack
421#define cdda_track_channels cdio_cddap_track_channels
422#define cdda_track_audiop cdio_cddap_track_audiop
423#define cdda_track_copyp cdio_cddap_track_copyp
424#define cdda_track_preemp cdio_cddap_track_preemp
425#define cdda_disc_firstsector cdio_cddap_disc_firstsector
426#define cdda_disc_lastsector cdio_cddap_disc_lastsector
427#define cdrom_drive cdrom_drive_t
lsn_t cdio_cddap_disc_firstsector(cdrom_drive_t *d)
cdrom_drive_t * cdio_cddap_identify_cdio(CdIo_t *p_cdio, int messagedest, char **ppsz_messages)
Definition: scan_devices.c:194
int cdio_cddap_speed_set(cdrom_drive_t *d, int speed)
Definition: interface.c:135
#define CDDA_TEST_FRAG_SMALL
Definition: cdda.h:173
int cdio_cddap_track_audiop(cdrom_drive_t *d, track_t i_track)
Definition: toc.c:194
int cdio_cddap_sector_gettrack(cdrom_drive_t *d, lsn_t lsn)
Definition: toc.c:169
paranoia_cdda_enums_t
Definition: cdda.h:54
@ CDDA_MESSAGE_PRINTIT
Definition: cdda.h:56
@ CDDA_MESSAGE_FORGETIT
Definition: cdda.h:55
@ CDDA_MESSAGE_LOGIT
Definition: cdda.h:57
@ CD_FRAMESAMPLES
Definition: cdda.h:58
bool cdio_cddap_close_no_free_cdio(cdrom_drive_t *d)
Definition: interface.c:59
int cdio_cddap_track_channels(cdrom_drive_t *d, track_t i_track)
Definition: toc.c:187
paranoia_jitter_t debug_paranoia_jitter
Definition: cddap_interface.c:28
lsn_t cdio_cddap_disc_lastsector(cdrom_drive_t *d)
#define CDDA_TEST_FRAG_MASSIVE
Definition: cdda.h:175
int cdio_cddap_track_preemp(cdrom_drive_t *d, track_t i_track)
Definition: toc.c:212
void cdio_cddap_verbose_set(cdrom_drive_t *d, int err_action, int mes_action)
Definition: interface.c:181
char * cdio_cddap_messages(cdrom_drive_t *d)
Definition: interface.c:188
const char * cdio_cddap_version(void)
Definition: interface.c:34
transport_error_t
Definition: cdda.h:340
@ TR_BUSY
Definition: cdda.h:348
@ TR_FAULT
Definition: cdda.h:350
@ TR_ILLEGAL
Definition: cdda.h:346
@ TR_OVERRUN
Definition: cdda.h:345
@ TR_EREAD
Definition: cdda.h:343
@ TR_EWRITE
Definition: cdda.h:342
@ TR_MEDIUM
Definition: cdda.h:347
@ TR_OK
Definition: cdda.h:341
@ TR_UNKNOWN
Definition: cdda.h:351
@ TR_UNDERRUN
Definition: cdda.h:344
@ TR_STREAMING
Definition: cdda.h:352
@ TR_NOTREADY
Definition: cdda.h:349
#define MAXTRK
Definition: cdda.h:68
paranoia_cdda_enums_t debug_paranoia_cdda_enums
Definition: cddap_interface.c:29
char * cdio_cddap_errors(cdrom_drive_t *d)
Definition: interface.c:196
void cdio_cddap_free_messages(char *psz_messages)
Definition: interface.c:204
lsn_t cdio_cddap_track_firstsector(cdrom_drive_t *d, track_t i_track)
struct TOC_s TOC_t
Structure for cdparanoia's CD Table of Contents.
track_t cdio_cddap_tracks(cdrom_drive_t *d)
int cdio_cddap_open(cdrom_drive_t *d)
Definition: interface.c:99
#define CDDA_TEST_UNDERRUN
Definition: cdda.h:178
int cdio_cddap_track_copyp(cdrom_drive_t *d, track_t i_track)
Definition: toc.c:202
long cdio_cddap_read(cdrom_drive_t *d, void *p_buffer, lsn_t beginsector, long sectors)
Definition: interface.c:176
#define CDDA_TEST_FRAG_LARGE
Definition: cdda.h:174
lsn_t cdio_cddap_track_lastsector(cdrom_drive_t *d, track_t i_track)
int data_bigendianp(cdrom_drive_t *d)
Definition: common_interface.c:53
cdrom_drive_t * cdio_cddap_find_a_cdrom(int messagedest, char **ppsz_message)
Definition: scan_devices.c:73
paranoia_jitter_t
Definition: cdda.h:151
@ CDDA_TEST_JITTER_SMALL
Definition: cdda.h:152
@ CDDA_TEST_JITTER_MASSIVE
Definition: cdda.h:154
@ CDDA_TEST_JITTER_LARGE
Definition: cdda.h:153
long cdio_cddap_read_timed(cdrom_drive_t *d, void *p_buffer, lsn_t beginsector, long sectors, int *milliseconds)
Definition: interface.c:145
cdrom_drive_t * cdio_cddap_identify(const char *psz_device, int messagedest, char **ppsz_message)
Definition: scan_devices.c:150
int cdio_cddap_close(cdrom_drive_t *d)
Definition: interface.c:86
Structure for cdparanoia's CD Table of Contents.
Definition: cdda.h:71
int32_t dwStartSector
Definition: cdda.h:73
unsigned char bTrack
Definition: cdda.h:72
Structure for cdparanoia's CD-ROM access.
Definition: cdda.h:80
char * messagebuf
Definition: cdda.h:118
char * drive_model
Definition: cdda.h:87
bool b_swap_bytes
Definition: cdda.h:103
char * cdda_device_name
Definition: cdda.h:85
int bigendianp
Definition: cdda.h:89
int errordest
Definition: cdda.h:115
int(* read_toc)(cdrom_drive_t *d)
Definition: cdda.h:123
char * errorbuf
Definition: cdda.h:117
int is_atapi
Definition: cdda.h:130
int messagedest
Definition: cdda.h:116
long(* read_audio)(cdrom_drive_t *d, void *p, lsn_t begin, long sectors)
Definition: cdda.h:124
CdIo_t * p_cdio
Definition: cdda.h:82
lsn_t audio_first_sector
Definition: cdda.h:112
int(* enable_cdda)(cdrom_drive_t *d, int onoff)
Definition: cdda.h:122
int drive_type
Definition: cdda.h:88
int is_mmc
Definition: cdda.h:131
int opened
Definition: cdda.h:83
int last_milliseconds
Definition: cdda.h:133
lsn_t audio_last_sector
Definition: cdda.h:113
int(* set_speed)(cdrom_drive_t *d, int speed)
Definition: cdda.h:126
int error_retry
Definition: cdda.h:127
track_t tracks
Definition: cdda.h:106
TOC_t disc_toc[MAXTRK]
Definition: cdda.h:107
int cd_extra
Definition: cdda.h:97
int nsectors
Definition: cdda.h:93
int i_test_flags
Definition: cdda.h:135
int report_all
Definition: cdda.h:128
Definition: p_block.h:153