1 /* cdrdao - write audio CD-Rs in disc-at-once mode 2 * 3 * Copyright (C) 1998, 1999 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 * $Log: TrackDataScrap.h,v $ 21 * Revision 1.2 2004/02/12 01:13:32 poolshark 22 * Merge from gnome2 branch 23 * 24 * Revision 1.1.1.1.6.1 2004/01/05 00:34:03 poolshark 25 * First checking of gnome2 port 26 * 27 * Revision 1.1.1.1 2003/12/09 05:32:28 denis 28 * Fooya 29 * 30 * Revision 1.1.1.1 2000/02/05 01:38:55 llanero 31 * Uploaded cdrdao 1.1.3 with pre10 patch applied. 32 * 33 * Revision 1.1 1999/08/27 18:39:38 mueller 34 * Initial revision 35 * 36 */ 37 38 #ifndef __TRACK_DATA_SCRAP_H__ 39 #define __TRACK_DATA_SCRAP_H__ 40 41 class TrackDataList; 42 43 class TrackDataScrap { 44 public: 45 TrackDataScrap(TrackDataList *); 46 ~TrackDataScrap(); 47 48 const TrackDataList *trackDataList() const; 49 50 void setPeaks(long blocks, 51 short *leftNegSamples, short *leftPosSamples, 52 short *rightNegSamples, short *rightPosSamples); 53 void getPeaks(long blocks, 54 short *leftNegSamples, short *leftPosSamples, 55 short *rightNegSamples, short *rightPosSamples) const; 56 57 private: 58 TrackDataList *list_; 59 long blocks_; 60 61 short *leftNegSamples_; 62 short *leftPosSamples_; 63 short *rightNegSamples_; 64 short *rightPosSamples_; 65 }; 66 67 #endif 68