summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opierec/wavFile.h
authorllornkcor <llornkcor>2003-04-22 14:11:34 (UTC)
committer llornkcor <llornkcor>2003-04-22 14:11:34 (UTC)
commit91bef5f1e3c76d32d15be55a020fa1df3d525a50 (patch) (unidiff)
treee0b3070ce281e641d1a71273516b8d386e69a090 /noncore/multimedia/opierec/wavFile.h
parent84be228e70b7d36627a8610386f44b6928d35d6a (diff)
downloadopie-91bef5f1e3c76d32d15be55a020fa1df3d525a50.zip
opie-91bef5f1e3c76d32d15be55a020fa1df3d525a50.tar.gz
opie-91bef5f1e3c76d32d15be55a020fa1df3d525a50.tar.bz2
blah. must remember to think before committing.
Diffstat (limited to 'noncore/multimedia/opierec/wavFile.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/wavFile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opierec/wavFile.h b/noncore/multimedia/opierec/wavFile.h
index 53740e0..b70c09d 100644
--- a/noncore/multimedia/opierec/wavFile.h
+++ b/noncore/multimedia/opierec/wavFile.h
@@ -18,26 +18,26 @@ typedef struct {
18 unsigned long sampleRate; 18 unsigned long sampleRate;
19 unsigned long avgBytesPerSec; 19 unsigned long avgBytesPerSec;
20 unsigned short nBlockAlign; 20 unsigned short nBlockAlign;
21 unsigned short bitsPerSample; 21 unsigned short bitsPerSample;
22 char dataID[4]; 22 char dataID[4];
23 unsigned long dataLen; 23 unsigned long dataLen;
24 } wavhdr; 24 } wavhdr;
25 25
26 26
27class WavFile : public QObject { 27class WavFile : public QObject {
28Q_OBJECT 28Q_OBJECT
29public: 29public:
30 WavFile( QObject * parent,const QString &fileName, bool newFile, int sampleRate, 30 WavFile( QObject * parent=0,const QString &fileName=0, bool newFile=0, int sampleRate=0,
31 int channels , int resolution, int format); 31 int channels=0 , int resolution=0, int format=0);
32 ~WavFile(); 32 ~WavFile();
33 wavhdr hdr; 33 wavhdr hdr;
34 bool adjustHeaders(int fd, int total); 34 bool adjustHeaders(int fd, int total);
35 QString currentFileName; 35 QString currentFileName;
36 QString trackName(); 36 QString trackName();
37 37
38 QFile track; 38 QFile track;
39 int wavHandle(); 39 int wavHandle();
40 int getFormat(); 40 int getFormat();
41 int getResolution(); 41 int getResolution();
42 int getSampleRate(); 42 int getSampleRate();
43 int getNumberSamples(); 43 int getNumberSamples();