diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-02-16 15:42:55 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-02-16 17:57:47 (GMT) |
commit | d17060663236c0cf4d3eec79f8f76e30edfca636 (patch) | |
tree | bb023163ecb4d681be6acfb1513bdcb182ad60ae /examples/multimedia/audioinput/audioinput.cpp | |
parent | 34236413600c8142d626c460fd4af97072054fa4 (diff) | |
download | Qt-d17060663236c0cf4d3eec79f8f76e30edfca636.zip Qt-d17060663236c0cf4d3eec79f8f76e30edfca636.tar.gz Qt-d17060663236c0cf4d3eec79f8f76e30edfca636.tar.bz2 |
Removed unused variable from audio input example
Reviewed-by: trustme
Diffstat (limited to 'examples/multimedia/audioinput/audioinput.cpp')
-rw-r--r-- | examples/multimedia/audioinput/audioinput.cpp | 6 |
1 files changed, 2 insertions, 4 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); |