summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-01-08 02:29:05 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-01-08 02:29:05 (GMT)
commit118e7a807d0764dee97612589fe5d7072d271e1e (patch)
treee2d7e366acb46082c119c165e11a235c6eced9b5 /doc/src
parent2dde31f712b5952838d867966d99565e1c7c825d (diff)
parent3f3e86d6fce5bb781bc41def35d0f15c58ef769c (diff)
downloadQt-118e7a807d0764dee97612589fe5d7072d271e1e.zip
Qt-118e7a807d0764dee97612589fe5d7072d271e1e.tar.gz
Qt-118e7a807d0764dee97612589fe5d7072d271e1e.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-team into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-team: QAudioInput loses data on Maemo5/other linux platforms. Fix warning in qfilesystemmodel_p.h Frequency to SampleRate and channels to channelCount. Added setChannelCount() to QAudioFormat.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/snippets/audio/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/audio/main.cpp b/doc/src/snippets/audio/main.cpp
index 0910865..bf4b145 100644
--- a/doc/src/snippets/audio/main.cpp
+++ b/doc/src/snippets/audio/main.cpp
@@ -89,9 +89,9 @@ private:
{
//![1]
QAudioFormat format;
- format.setFrequency(44100);
+ format.setSampleRate(44100);
//![1]
- format.setChannels(2);
+ format.setChannelCount(2);
format.setSampleSize(16);
format.setCodec("audio/pcm");
format.setByteOrder(QAudioFormat::LittleEndian);