SonyCDU920.h
上传用户:weiliju62
上传日期:2007-01-06
资源大小:619k
文件大小:3k
- /* cdrdao - write audio CD-Rs in disc-at-once mode
- *
- * Copyright (C) 1999 Andreas Mueller <mueller@daneb.ping.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
- /*
- * $Log: SonyCDU920.h,v $
- * Revision 1.2 1999/05/24 17:34:19 mueller
- * Added parameter for data form of lead-in to 'createCueSheet()'.
- *
- * Revision 1.1 1999/05/20 18:40:17 mueller
- * Initial revision
- *
- */
- #ifndef __SONY_CDU920_H__
- #define __SONY_CDU920_H__
- #include "CdrDriver.h"
- class Toc;
- class Track;
- class SonyCDU920 : public CdrDriver {
- public:
- SonyCDU920(ScsiIf *scsiIf, unsigned long options);
- ~SonyCDU920();
- static CdrDriver *instance(ScsiIf *scsiIf, unsigned long options);
- int bigEndianSamples() const;
- int multiSession(int);
- int speed(int);
- int loadUnload(int) const;
-
- int initDao(const Toc *);
- int startDao();
- int finishDao();
- void abortDao();
- int writeData(TrackData::Mode, long &lba, const char *buf, long len);
- DiskInfo *diskInfo();
- Toc *readDiskToc(int session, const char *audioFilename);
- protected:
- int scsiTimeout_;
- Msf leadInStart_; // start of lead-in
- long leadInLen_; // length of lead-in
-
- DiskInfo diskInfo_;
- int getSessionInfo();
- int readCatalog(Toc *, long startLba, long endLba);
- int readIsrc(int, char *);
- virtual int selectSpeed(); // overloaded by 'SonyCDU948'
- virtual int setWriteParameters(); // overloaded by 'SonyCDU948'
- unsigned char *createCueSheet(unsigned char leadInDataForm,
- long *cueSheetLen);
- int sendCueSheet(unsigned char leadInDataForm);
- int readBufferCapacity(long *capacity);
- int analyzeTrack(TrackData::Mode, int trackNr, long startLba, long endLba,
- Msf *index,
- int *indexCnt, long *pregap, char *isrcCode,
- unsigned char *ctl);
- int readSubChannels(long lba, long len, SubChannel ***, Sample *);
- CdRawToc *getRawToc(int sessionNr, int *len);
- long readTrackData(TrackData::Mode mode, long lba, long len,
- unsigned char *buf);
- int readAudioRange(int fd, long start, long end, int startTrack,
- int endTrack, TrackInfo *);
- };
- #endif