summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/audiorecorder/audiorecorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/audiorecorder/audiorecorder.h')
-rw-r--r--examples/multimedia/audiorecorder/audiorecorder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/multimedia/audiorecorder/audiorecorder.h b/examples/multimedia/audiorecorder/audiorecorder.h
index f94bb899c..55dd37a8d 100644
--- a/examples/multimedia/audiorecorder/audiorecorder.h
+++ b/examples/multimedia/audiorecorder/audiorecorder.h
@@ -52,7 +52,7 @@
#define AUDIORECORDER_H
#include <QMainWindow>
-#include <QMediaEncoder>
+#include <QMediaRecorder>
#include <QMediaCaptureSession>
#include <QUrl>
@@ -78,8 +78,8 @@ private slots:
void togglePause();
void toggleRecord();
- void updateStatus(QMediaEncoder::Status);
- void onStateChanged(QMediaEncoder::State);
+ void updateStatus(QMediaRecorder::Status);
+ void onStateChanged(QMediaRecorder::RecorderState);
void updateProgress(qint64 pos);
void displayErrorMessage();
@@ -89,7 +89,7 @@ private:
Ui::AudioRecorder *ui = nullptr;
QMediaCaptureSession m_captureSession;
- QMediaEncoder *m_audioEncoder = nullptr;
+ QMediaRecorder *m_audioEncoder = nullptr;
QList<AudioLevel*> m_audioLevels;
bool m_outputLocationSet = false;