summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2009-09-24 01:55:52 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2009-09-24 02:40:13 (GMT)
commitfb50411e4c0c132631f8237933fbb0972fa4c9aa (patch)
tree89aa19161710ccf0d2c0e11c0494ddef893eb19c /doc
parent609dd32580b1e07213a2b2efdd4d854c34e8f6d7 (diff)
downloadQt-fb50411e4c0c132631f8237933fbb0972fa4c9aa.zip
Qt-fb50411e4c0c132631f8237933fbb0972fa4c9aa.tar.gz
Qt-fb50411e4c0c132631f8237933fbb0972fa4c9aa.tar.bz2
AudioService API changes; QString->const QString&, remove QAudioDeviceId use QAudioDeviceInfo.
Reviewed-by: Bill King
Diffstat (limited to 'doc')
-rw-r--r--doc/src/snippets/audio/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/src/snippets/audio/main.cpp b/doc/src/snippets/audio/main.cpp
index e663115..0910865 100644
--- a/doc/src/snippets/audio/main.cpp
+++ b/doc/src/snippets/audio/main.cpp
@@ -98,8 +98,7 @@ private:
//![2]
format.setSampleType(QAudioFormat::SignedInt);
- QAudioDeviceId id = QAudioDeviceInfo::defaultOutputDevice();
- QAudioDeviceInfo info(id);
+ QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());
if (!info.isFormatSupported(format))
format = info.nearestFormat(format);