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.
23
#include "CdrDriver.h"
24
#include "CDD2600Base.h"
28
class CDD2600 : public CdrDriver, private CDD2600Base {
31
CDD2600(ScsiIf *scsiIf, unsigned long options);
34
static CdrDriver *instance(ScsiIf *scsiIf, unsigned long options);
36
unsigned long getReadCapabilities(const CdToc *, int) const { return 0; }
38
// CDD2600 takes big endian samples
39
int bigEndianSamples() const { return 1; }
45
int loadUnload(int) const;
47
int initDao(const Toc *);
52
int writeData(TrackData::Mode, TrackData::SubChannelMode, long &lba,
53
const char *buf, long len);
55
Toc *readDiskToc(int, const char *);
56
Toc *readDisk(int, const char *);
61
CdRawToc *getRawToc(int sessionNr, int *len);
62
int readCatalog(Toc *, long startLba, long endLba);
63
int readIsrc(int, char *);
64
int getTrackIndex(long lba, int *trackNr, int *indexNr, unsigned char *ctl);
65
int analyzeTrack(TrackData::Mode, int trackNr, long startLba, long endLba,
67
int *indexCnt, long *pregap, char *isrcCode,
69
int readSubChannels(TrackData::SubChannelMode, long lba, long len,
70
SubChannel ***, Sample *);
77
int modeSelectPlay(int immediate, int sotc, unsigned char volume);
79
int readSubChannelData(int *trackNr, int *indexNr, long *,
82
void readBlock(unsigned long sector);
84
long readTrackData(TrackData::Mode, TrackData::SubChannelMode, long lba,
85
long len, unsigned char *buf);
87
int readAudioRange(ReadDiskInfo *, int fd, long start, long end,
88
int startTrack, int endTrack, TrackInfo *);
90
int nextWritableAddress(long *lba, int showError);