author | chicken <chicken> | 2004-03-02 15:11:14 (UTC) |
---|---|---|
committer | chicken <chicken> | 2004-03-02 15:11:14 (UTC) |
commit | b48c5437e9631094d15ec7280a9d1cf212b3eb28 (patch) (unidiff) | |
tree | 4c0095e58acc98ba6e8ba40240c491d03b99be92 /noncore/multimedia/opierec/waveform.cpp | |
parent | 12dd57c04b42d4517061ed847b1aa041dd8af841 (diff) | |
download | opie-b48c5437e9631094d15ec7280a9d1cf212b3eb28.zip opie-b48c5437e9631094d15ec7280a9d1cf212b3eb28.tar.gz opie-b48c5437e9631094d15ec7280a9d1cf212b3eb28.tar.bz2 |
fix includes
Diffstat (limited to 'noncore/multimedia/opierec/waveform.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opierec/waveform.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; |