summaryrefslogtreecommitdiff
path: root/src/multimedia/audio/qaudiosystemplugin.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-05-27 12:20:55 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-05 12:44:29 +0200
commit487010e5797da8634cdec44e94b5476695c1bd15 (patch)
tree352eacc906e11960e376b5ac48435070159d5369 /src/multimedia/audio/qaudiosystemplugin.cpp
parentaae2e2104b78117955305ff7d3b06741f4aee69e (diff)
downloadqtmultimedia-487010e5797da8634cdec44e94b5476695c1bd15.tar.gz
Remove the last remainders of the old plugin system
Port the last two currently unused plugins (v4l and wmf) over to the new plugin format. Fix documentation that still mentioned Q_EXPORT_PLUGIN. Change-Id: I18200dd792e8973687e92180fc41d11395b35132 Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/multimedia/audio/qaudiosystemplugin.cpp')
-rw-r--r--src/multimedia/audio/qaudiosystemplugin.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/multimedia/audio/qaudiosystemplugin.cpp b/src/multimedia/audio/qaudiosystemplugin.cpp
index a6457f031..0fcfd5561 100644
--- a/src/multimedia/audio/qaudiosystemplugin.cpp
+++ b/src/multimedia/audio/qaudiosystemplugin.cpp
@@ -54,9 +54,17 @@ QT_BEGIN_NAMESPACE
\internal
Writing a audio plugin is achieved by subclassing this base class,
- reimplementing the pure virtual functions keys(), availableDevices(),
+ reimplementing the pure virtual functions availableDevices(),
createInput(), createOutput() and createDeviceInfo() then exporting
- the class with the Q_EXPORT_PLUGIN2() macro.
+ the class with the Q_PLUGIN_METADATA() macro.
+
+ The json file containing the meta data should contain a list of keys
+ matching the plugin. Add "default" to your list of keys available
+ to override the default audio device to be provided by your plugin.
+
+ \code
+ { "Keys": [ "default" ] }
+ \endcode
Unit tests are available to help in debugging new plugins.
@@ -69,8 +77,6 @@ QT_BEGIN_NAMESPACE
creating a plugin subclassing QAudioSystemPlugin, QAbstractAudioDeviceInfo,
QAbstractAudioOutput and QAbstractAudioInput.
- Add "default" to your list of keys() available to override the default
- audio device to be provided by your plugin.
-audio-backend configure option will force compiling in of the builtin backend
into the QtMultimedia library at compile time. This is automatic by default