summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudiodeviceinfo.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@trolltech.com>2009-09-15 11:01:45 (GMT)
committerGeir Vattekar <geir.vattekar@trolltech.com>2009-09-15 11:03:34 (GMT)
commitcd5f0f868bc830c6b350e8263fd53597f52e1146 (patch)
tree1306128003e1ca96546515c96ea6802ff4c56fe8 /src/multimedia/audio/qaudiodeviceinfo.cpp
parent2b21c3f4022c64ee6f0178b1866f22639c377ae6 (diff)
downloadQt-cd5f0f868bc830c6b350e8263fd53597f52e1146.zip
Qt-cd5f0f868bc830c6b350e8263fd53597f52e1146.tar.gz
Qt-cd5f0f868bc830c6b350e8263fd53597f52e1146.tar.bz2
Doc: Added some snippets to the multimedia audio docs.
Diffstat (limited to 'src/multimedia/audio/qaudiodeviceinfo.cpp')
-rw-r--r--src/multimedia/audio/qaudiodeviceinfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multimedia/audio/qaudiodeviceinfo.cpp b/src/multimedia/audio/qaudiodeviceinfo.cpp
index e349733..e38a91e 100644
--- a/src/multimedia/audio/qaudiodeviceinfo.cpp
+++ b/src/multimedia/audio/qaudiodeviceinfo.cpp
@@ -71,7 +71,11 @@ QT_BEGIN_NAMESPACE
audio plugins installed and the audio device capabilities. If you need a specific format, you can check if
the device supports it with isFormatSupported(), or fetch a
supported format that is as close as possible to the format with
- nearestFormat().
+ nearestFormat(). For instance:
+
+ \snippet doc/src/snippets/audio/main.cpp 1
+ \dots 8
+ \snippet doc/src/snippets/audio/main.cpp 2
A QAudioDeviceInfo is constructed with a QAudioDeviceId, which is
an identifier for a physical device. It is used by Qt to construct