diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-04-14 15:20:19 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-04-19 11:06:39 +0000 |
commit | 45861b09e330d76b1663fa2f809dd1de0740699e (patch) | |
tree | 6f6bd12b5bd58940cf7ec738ffacbef3a5bcc6d5 /examples/multimedia/audiodevices/audiodevices.h | |
parent | b43c44e3e5aa89f076ba2846c30ca2edc435c741 (diff) |
Make QMediaDeviceManager available to QML
This required some changes to the QMediaDeviceManager API,
namely that it can be instantiated itself.
Add required API as properties to QMediaDeviceManager and expose
QAudioDeviceInfo and QCameraInfo as well.
Change-Id: I4f7ef04d703f84cc6caefd62ad453f166e3b1c9b
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/multimedia/audiodevices/audiodevices.h')
-rw-r--r-- | examples/multimedia/audiodevices/audiodevices.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/multimedia/audiodevices/audiodevices.h b/examples/multimedia/audiodevices/audiodevices.h index 31ec479df..17d8d4888 100644 --- a/examples/multimedia/audiodevices/audiodevices.h +++ b/examples/multimedia/audiodevices/audiodevices.h @@ -52,6 +52,7 @@ #define AUDIODEVICES_H #include <QAudioDeviceInfo> +#include <QMediaDeviceManager> #include <QMainWindow> #include <QObject> @@ -75,6 +76,7 @@ private: QAudioDeviceInfo m_deviceInfo; QAudioFormat m_settings; QAudio::Mode m_mode = QAudio::AudioInput; + QMediaDeviceManager *m_manager = nullptr; private slots: void updateAudioDevices(); |