From d17060663236c0cf4d3eec79f8f76e30edfca636 Mon Sep 17 00:00:00 2001 From: Gareth Stockwell Date: Tue, 16 Feb 2010 15:42:55 +0000 Subject: Removed unused variable from audio input example Reviewed-by: trustme --- examples/multimedia/audioinput/audioinput.cpp | 6 ++---- examples/multimedia/audioinput/audioinput.h | 4 +--- 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; -- cgit v0.12