summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/audiorecorder/audiorecorder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/audiorecorder/audiorecorder.cpp')
-rw-r--r--examples/multimedia/audiorecorder/audiorecorder.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.cpp b/examples/multimedia/audiorecorder/audiorecorder.cpp
index 04f72c304..0df27294c 100644
--- a/examples/multimedia/audiorecorder/audiorecorder.cpp
+++ b/examples/multimedia/audiorecorder/audiorecorder.cpp
@@ -77,11 +77,9 @@ AudioRecorder::AudioRecorder()
// this, &AudioRecorder::processBuffer);
// m_probe->setSource(m_audioRecorder);
- QMediaDeviceManager *manager = QMediaDeviceManager::instance();
-
//audio devices
ui->audioDeviceBox->addItem(tr("Default"), QVariant(QString()));
- for (auto device: manager->audioInputs()) {
+ for (auto device: QMediaDeviceManager::audioInputs()) {
auto name = device.description();
ui->audioDeviceBox->addItem(name, QVariant::fromValue(device));
}