diff options
author | Yoann Lopes <yoann.lopes@qt.io> | 2016-06-02 14:37:57 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2016-06-03 21:12:10 +0000 |
commit | 5e53d494a95ea6bd40cea4207335a470638f95a6 (patch) | |
tree | 06efc767abd00691ba90f57bcd8965b5363566c3 /src/multimedia/audio | |
parent | 838c12bce8d0d48ef50f485e6f611990742d7b8f (diff) |
Fix out-of-date documentation for QAudioSystemPlugin.
Change-Id: I0c186ae42a6f1ad0d2fde38544341741d4e8df6a
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/multimedia/audio')
-rw-r--r-- | src/multimedia/audio/qaudiosystemplugin.cpp | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/src/multimedia/audio/qaudiosystemplugin.cpp b/src/multimedia/audio/qaudiosystemplugin.cpp index 61681b6d6..438b8b7bb 100644 --- a/src/multimedia/audio/qaudiosystemplugin.cpp +++ b/src/multimedia/audio/qaudiosystemplugin.cpp @@ -77,24 +77,15 @@ QAudioSystemPluginExtension::~QAudioSystemPluginExtension() \sa QAbstractAudioDeviceInfo, QAbstractAudioOutput, QAbstractAudioInput - Qt supports win32, linux(alsa) and OS X standard (builtin to the - QtMultimedia library at compile time). + Qt comes with plugins for Windows (WinMM and WASAPI), Linux (ALSA and PulseAudio), OS X / iOS + (CoreAudio), Android (OpenSL ES) and QNX. - You can support other backends other than these predefined ones by - creating a plugin subclassing QAudioSystemPlugin, QAbstractAudioDeviceInfo, - QAbstractAudioOutput and QAbstractAudioInput. - - - The builtin backend will only be compiled into the library if the dependencies - are installed. eg. alsa-devel package installed for linux. - - If the builtin backend is not compiled into the QtMultimedia library and - no audio plugins are available a fallback dummy backend will be used. + If no audio plugins are available, a fallback dummy backend will be used. This should print out warnings if this is the case when you try and use QAudioInput - or QAudioOutput. To fix this problem reconfigure Qt with the required - dependencies (e.g. alsa-devel package) available or create your own plugin with a default - key to always override the dummy fallback. The easiest way to determine - if you have only a dummy backend is to get a list of available audio devices. + or QAudioOutput. To fix this problem, make sure the dependencies for the Qt plugins are + installed on the system and reconfigure Qt (e.g. alsa-devel package on Linux), or create your + own plugin with a default key to always override the dummy fallback. The easiest way to + determine if you have only a dummy backend is to get a list of available audio devices. QAudioDeviceInfo::availableDevices(QAudio::AudioOutput).size() = 0 (dummy backend) */ |