summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 15:42:55 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 17:57:47 (GMT)
commitd17060663236c0cf4d3eec79f8f76e30edfca636 (patch)
treebb023163ecb4d681be6acfb1513bdcb182ad60ae
parent34236413600c8142d626c460fd4af97072054fa4 (diff)
downloadQt-d17060663236c0cf4d3eec79f8f76e30edfca636.zip
Qt-d17060663236c0cf4d3eec79f8f76e30edfca636.tar.gz
Qt-d17060663236c0cf4d3eec79f8f76e30edfca636.tar.bz2
Removed unused variable from audio input example
Reviewed-by: trustme
-rw-r--r--examples/multimedia/audioinput/audioinput.cpp6
-rw-r--r--examples/multimedia/audioinput/audioinput.h4
2 files changed, 3 insertions, 7 deletions
diff --git a/examples/multimedia/audioinput/audioinput.cpp b/examples/multimedia/audioinput/audioinput.cpp
index 18b5ba1..d00dd02 100644
--- a/examples/multimedia/audioinput/audioinput.cpp
+++ b/examples/multimedia/audioinput/audioinput.cpp
@@ -52,11 +52,9 @@
#define BUFFER_SIZE 4096
-AudioInfo::AudioInfo(QObject *parent, QAudioInput *device)
+AudioInfo::AudioInfo(QObject *parent)
:QIODevice(parent)
{
- input = device;
-
m_maxValue = 0;
}
@@ -222,7 +220,7 @@ InputTest::InputTest()
audioInput = new QAudioInput(format,this);
connect(audioInput, SIGNAL(notify()), SLOT(status()));
connect(audioInput, SIGNAL(stateChanged(QAudio::State)), SLOT(state(QAudio::State)));
- audioinfo = new AudioInfo(this,audioInput);
+ audioinfo = new AudioInfo(this);
connect(audioinfo, SIGNAL(update()), SLOT(refreshDisplay()));
audioinfo->start();
audioInput->start(audioinfo);
diff --git a/examples/multimedia/audioinput/audioinput.h b/examples/multimedia/audioinput/audioinput.h
index abe2be1..6f6c8eb 100644
--- a/examples/multimedia/audioinput/audioinput.h
+++ b/examples/multimedia/audioinput/audioinput.h
@@ -52,7 +52,7 @@ class AudioInfo : public QIODevice
{
Q_OBJECT
public:
- AudioInfo(QObject *parent, QAudioInput *device);
+ AudioInfo(QObject *parent);
~AudioInfo();
void start();
@@ -63,8 +63,6 @@ public:
qint64 readData(char *data, qint64 maxlen);
qint64 writeData(const char *data, qint64 len);
- QAudioInput *input;
-
private:
int m_maxValue;