diff options
author | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-09-15 11:01:45 (GMT) |
---|---|---|
committer | Geir Vattekar <geir.vattekar@trolltech.com> | 2009-09-15 11:03:34 (GMT) |
commit | cd5f0f868bc830c6b350e8263fd53597f52e1146 (patch) | |
tree | 1306128003e1ca96546515c96ea6802ff4c56fe8 /src/multimedia/audio/qaudiodeviceinfo.cpp | |
parent | 2b21c3f4022c64ee6f0178b1866f22639c377ae6 (diff) | |
download | Qt-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.cpp | 6 |
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 |