~ubuntu-branches/ubuntu/utopic/cdrdao/utopic

« back to all changes in this revision

Viewing changes to dao/PlextorReaderScan.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-06-24 22:33:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040624223316-534onzugaeeyq61j
Tags: upstream-1.1.9
ImportĀ upstreamĀ versionĀ 1.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  cdrdao - write audio CD-Rs in disc-at-once mode
 
2
 *
 
3
 *  Copyright (C) 1998-2001  Andreas Mueller <mueller@daneb.ping.de>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
18
 */
 
19
 
 
20
#ifndef __PLEXTOR_READER_SCAN_H__
 
21
#define __PLEXTOR_READER_SCAN_H__
 
22
 
 
23
#include "PlextorReader.h"
 
24
 
 
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
 
30
 
 
31
class PlextorReaderScan : public PlextorReader {
 
32
public:
 
33
 
 
34
  PlextorReaderScan(ScsiIf *scsiIf, unsigned long options);
 
35
  ~PlextorReaderScan();
 
36
  static CdrDriver *instance(ScsiIf *scsiIf, unsigned long options);
 
37
 
 
38
  Toc *readDisk(int session, const char *);
 
39
 
 
40
  unsigned long getReadCapabilites(const CdToc *, int) const { return 0; }
 
41
 
 
42
protected:
 
43
 
 
44
  int analyzeTrack(TrackData::Mode, int trackNr, long startLba, long endLba,
 
45
                   Msf *index,
 
46
                   int *indexCnt, long *pregap, char *isrcCode,
 
47
                   unsigned char *ctl);
 
48
 
 
49
  int readSubChannels(TrackData::SubChannelMode, long lba, long len,
 
50
                      SubChannel ***, Sample *);
 
51
 
 
52
  int readAudioRange(ReadDiskInfo *, int fd, long start, long end,
 
53
                     int startTrack, int endTrack, TrackInfo *);
 
54
 
 
55
};
 
56
 
 
57
#endif