1
/* cdrdao - write audio CD-Rs in disc-at-once mode
3
* Copyright (C) 1998-2001 Andreas Mueller <mueller@daneb.ping.de>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
#ifndef __PLEXTOR_READER_SCAN_H__
21
#define __PLEXTOR_READER_SCAN_H__
23
#include "PlextorReader.h"
25
#define OPT_PLEX_USE_PQ 0x0001 // use PQ sub-channel data for scanning
26
#define OPT_PLEX_PQ_BCD 0x0002 // PQ sub-channel contains BCD numbers
27
#define OPT_PLEX_READ_ISRC 0x0004 // force reading of ISRC code with
28
// READ SUB CHANNEL instead taking it from
29
// the sub-channel data
31
class PlextorReaderScan : public PlextorReader {
34
PlextorReaderScan(ScsiIf *scsiIf, unsigned long options);
36
static CdrDriver *instance(ScsiIf *scsiIf, unsigned long options);
38
Toc *readDisk(int session, const char *);
40
unsigned long getReadCapabilites(const CdToc *, int) const { return 0; }
44
int analyzeTrack(TrackData::Mode, int trackNr, long startLba, long endLba,
46
int *indexCnt, long *pregap, char *isrcCode,
49
int readSubChannels(TrackData::SubChannelMode, long lba, long len,
50
SubChannel ***, Sample *);
52
int readAudioRange(ReadDiskInfo *, int fd, long start, long end,
53
int startTrack, int endTrack, TrackInfo *);