-rw-r--r-- | noncore/multimedia/opierec/main.cpp | 1 | ||||
-rw-r--r-- | noncore/multimedia/opierec/qtrec.cpp | 1 | ||||
-rw-r--r-- | noncore/multimedia/opierec/wavFile.cpp | 1 | ||||
-rw-r--r-- | noncore/multimedia/opierec/waveform.cpp | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/noncore/multimedia/opierec/main.cpp b/noncore/multimedia/opierec/main.cpp index 714907c..74a175b 100644 --- a/noncore/multimedia/opierec/main.cpp +++ b/noncore/multimedia/opierec/main.cpp | |||
@@ -1,30 +1,29 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | main.cpp - main routine | 2 | main.cpp - main routine |
3 | ***************************************************************************/ | 3 | ***************************************************************************/ |
4 | //// main.cpp | 4 | //// main.cpp |
5 | //// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com> | 5 | //// copyright 2001, 2002, by L. J. Potter <ljp@llornkcor.com> |
6 | /*************************************************************************** | 6 | /*************************************************************************** |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "qtrec.h" | 12 | #include "qtrec.h" |
13 | #include <qpe/qpeapplication.h> | ||
14 | 13 | ||
15 | #ifdef PDAUDIO | 14 | #ifdef PDAUDIO |
16 | int main(int argc, char* argv[]) { | 15 | int main(int argc, char* argv[]) { |
17 | QPEApplication a(argc, argv); | 16 | QPEApplication a(argc, argv); |
18 | QtRec qtrec; | 17 | QtRec qtrec; |
19 | a.showMainWidget( &qtrec); | 18 | a.showMainWidget( &qtrec); |
20 | return a.exec(); | 19 | return a.exec(); |
21 | } | 20 | } |
22 | 21 | ||
23 | 22 | ||
24 | #else | 23 | #else |
25 | #include <opie/oapplicationfactory.h> | 24 | #include <opie/oapplicationfactory.h> |
26 | OPIE_EXPORT_APP( OApplicationFactory<QtRec> ) | 25 | OPIE_EXPORT_APP( OApplicationFactory<QtRec> ) |
27 | 26 | ||
28 | #endif | 27 | #endif |
29 | 28 | ||
30 | 29 | ||
diff --git a/noncore/multimedia/opierec/qtrec.cpp b/noncore/multimedia/opierec/qtrec.cpp index f2035ef..1c64ab1 100644 --- a/noncore/multimedia/opierec/qtrec.cpp +++ b/noncore/multimedia/opierec/qtrec.cpp | |||
@@ -1,35 +1,34 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | // qtrec.cpp | 2 | // qtrec.cpp |
3 | Created: Thu Jan 17 11:19:58 2002 | 3 | Created: Thu Jan 17 11:19:58 2002 |
4 | copyright 2002 by L.J. Potter <ljp@llornkcor.com> | 4 | copyright 2002 by L.J. Potter <ljp@llornkcor.com> |
5 | ****************************************************************************/ | 5 | ****************************************************************************/ |
6 | #define DEV_VERSION | 6 | #define DEV_VERSION |
7 | 7 | ||
8 | #include "pixmaps.h" | 8 | #include "pixmaps.h" |
9 | #include "qtrec.h" | 9 | #include "qtrec.h" |
10 | #include "waveform.h" | 10 | #include "waveform.h" |
11 | #include "device.h" | ||
12 | 11 | ||
13 | #include <pthread.h> | 12 | #include <pthread.h> |
14 | 13 | ||
15 | extern "C" { | 14 | extern "C" { |
16 | #include "adpcm.h" | 15 | #include "adpcm.h" |
17 | } | 16 | } |
18 | 17 | ||
19 | #include <sys/soundcard.h> | 18 | #include <sys/soundcard.h> |
20 | 19 | ||
21 | #include <qpe/config.h> | 20 | #include <qpe/config.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 21 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/resource.h> | 23 | #include <qpe/resource.h> |
25 | #include <qpe/storage.h> | 24 | #include <qpe/storage.h> |
26 | 25 | ||
27 | #include <qcheckbox.h> | 26 | #include <qcheckbox.h> |
28 | #include <qcombobox.h> | 27 | #include <qcombobox.h> |
29 | //#include <qdatetime.h> | 28 | //#include <qdatetime.h> |
30 | #include <qdir.h> | 29 | #include <qdir.h> |
31 | #include <qgroupbox.h> | 30 | #include <qgroupbox.h> |
32 | #include <qlabel.h> | 31 | #include <qlabel.h> |
33 | #include <qlayout.h> | 32 | #include <qlayout.h> |
34 | #include <qlistview.h> | 33 | #include <qlistview.h> |
35 | #include <qmessagebox.h> | 34 | #include <qmessagebox.h> |
diff --git a/noncore/multimedia/opierec/wavFile.cpp b/noncore/multimedia/opierec/wavFile.cpp index 1d58bb3..35bc14d 100644 --- a/noncore/multimedia/opierec/wavFile.cpp +++ b/noncore/multimedia/opierec/wavFile.cpp | |||
@@ -1,32 +1,31 @@ | |||
1 | //wavFile.cpp | 1 | //wavFile.cpp |
2 | #include "wavFile.h" | 2 | #include "wavFile.h" |
3 | #include "qtrec.h" | 3 | #include "qtrec.h" |
4 | 4 | ||
5 | #include <qmessagebox.h> | 5 | #include <qmessagebox.h> |
6 | #include <qdir.h> | 6 | #include <qdir.h> |
7 | 7 | ||
8 | #include <qpe/timestring.h> | ||
9 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
10 | 9 | ||
11 | #include <errno.h> | 10 | #include <errno.h> |
12 | 11 | ||
13 | #include <sys/time.h> | 12 | #include <sys/time.h> |
14 | #include <sys/types.h> | 13 | #include <sys/types.h> |
15 | #include <sys/vfs.h> | 14 | #include <sys/vfs.h> |
16 | 15 | ||
17 | #include <fcntl.h> | 16 | #include <fcntl.h> |
18 | #include <math.h> | 17 | #include <math.h> |
19 | #include <mntent.h> | 18 | #include <mntent.h> |
20 | #include <stdio.h> | 19 | #include <stdio.h> |
21 | #include <stdlib.h> | 20 | #include <stdlib.h> |
22 | #include <unistd.h> | 21 | #include <unistd.h> |
23 | 22 | ||
24 | WavFile::WavFile( QObject * parent,const QString &fileName, bool makeNwFile, int sampleRate, | 23 | WavFile::WavFile( QObject * parent,const QString &fileName, bool makeNwFile, int sampleRate, |
25 | int channels, int resolution, int format ) | 24 | int channels, int resolution, int format ) |
26 | : QObject( parent) | 25 | : QObject( parent) |
27 | { | 26 | { |
28 | //qDebug("new wave file"); | 27 | //qDebug("new wave file"); |
29 | bool b = makeNwFile; | 28 | bool b = makeNwFile; |
30 | wavSampleRate=sampleRate; | 29 | wavSampleRate=sampleRate; |
31 | wavFormat=format; | 30 | wavFormat=format; |
32 | wavChannels=channels; | 31 | wavChannels=channels; |
diff --git a/noncore/multimedia/opierec/waveform.cpp b/noncore/multimedia/opierec/waveform.cpp index 05be373..9cc40b4 100644 --- a/noncore/multimedia/opierec/waveform.cpp +++ b/noncore/multimedia/opierec/waveform.cpp | |||
@@ -1,46 +1,45 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #include "waveform.h" | 20 | #include "waveform.h" |
21 | 21 | ||
22 | #include <qlabel.h> | ||
23 | #include <qpainter.h> | 22 | #include <qpainter.h> |
24 | 23 | ||
25 | 24 | ||
26 | Waveform::Waveform( QWidget *parent, const char *name, WFlags fl ) | 25 | Waveform::Waveform( QWidget *parent, const char *name, WFlags fl ) |
27 | : QWidget( parent, name, fl ) | 26 | : QWidget( parent, name, fl ) |
28 | { | 27 | { |
29 | pixmap = 0; | 28 | pixmap = 0; |
30 | windowSize = 100; | 29 | windowSize = 100; |
31 | samplesPerPixel = 8000 / (5 * windowSize); | 30 | samplesPerPixel = 8000 / (5 * windowSize); |
32 | currentValue = 0; | 31 | currentValue = 0; |
33 | numSamples = 0; | 32 | numSamples = 0; |
34 | windowPosn = 0; | 33 | windowPosn = 0; |
35 | window = 0; | 34 | window = 0; |
36 | } | 35 | } |
37 | 36 | ||
38 | 37 | ||
39 | void Waveform::changeSettings( int frequency, int channels ) | 38 | void Waveform::changeSettings( int frequency, int channels ) |
40 | { | 39 | { |
41 | makePixmap(); | 40 | makePixmap(); |
42 | // qWarning("change waveform %d, %d", frequency, channels); | 41 | // qWarning("change waveform %d, %d", frequency, channels); |
43 | samplesPerPixel = frequency * channels / (5 * windowSize); | 42 | samplesPerPixel = frequency * channels / (5 * windowSize); |
44 | qWarning("Waveform::changeSettings %d", samplesPerPixel); | 43 | qWarning("Waveform::changeSettings %d", samplesPerPixel); |
45 | if ( !samplesPerPixel ) | 44 | if ( !samplesPerPixel ) |
46 | samplesPerPixel = 1; | 45 | samplesPerPixel = 1; |