summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/audioinput
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 17:38:35 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-02-16 18:18:57 (GMT)
commit96a6c921d940c802f7a282067f5b1790af725e6f (patch)
tree27096d3bb1da61a95530f22ce505ce26982ca1f8 /examples/multimedia/audioinput
parent81a96e9da45cbdf0bab221e3dd0b617ec7dcb890 (diff)
downloadQt-96a6c921d940c802f7a282067f5b1790af725e6f.zip
Qt-96a6c921d940c802f7a282067f5b1790af725e6f.tar.gz
Qt-96a6c921d940c802f7a282067f5b1790af725e6f.tar.bz2
Tidied up debug output in audio input example
Reviewed-by: trustme
Diffstat (limited to 'examples/multimedia/audioinput')
-rw-r--r--examples/multimedia/audioinput/audioinput.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/multimedia/audioinput/audioinput.cpp b/examples/multimedia/audioinput/audioinput.cpp
index 10941ca..2258854 100644
--- a/examples/multimedia/audioinput/audioinput.cpp
+++ b/examples/multimedia/audioinput/audioinput.cpp
@@ -267,7 +267,7 @@ void InputTest::initializeAudio()
QAudioDeviceInfo info(QAudioDeviceInfo::defaultInputDevice());
if (!info.isFormatSupported(m_format)) {
- qWarning()<<"default format not supported try to use nearest";
+ qWarning() << "Default format not supported - trying to use nearest";
m_format = info.nearestFormat(m_format);
}
@@ -288,7 +288,9 @@ void InputTest::createAudioInput()
void InputTest::status()
{
- qWarning()<<"bytesReady = "<<m_audioInput->bytesReady()<<" bytes, elapsedUSecs = "<<m_audioInput->elapsedUSecs()<<", processedUSecs = "<<m_audioInput->processedUSecs();
+ qWarning() << "bytesReady = " << m_audioInput->bytesReady()
+ << ", " << "elapsedUSecs = " <<m_audioInput->elapsedUSecs()
+ << ", " << "processedUSecs = "<<m_audioInput->processedUSecs();
}
void InputTest::readMore()
@@ -345,7 +347,7 @@ void InputTest::toggleSuspend()
void InputTest::state(QAudio::State state)
{
- qWarning() << " state=" << state;
+ qWarning() << "state = " << state;
}
void InputTest::refreshDisplay()