From 47c672cdd67853658a2f86688ec72eb9b4d8c1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Str=C3=B8mme?= Date: Thu, 10 Nov 2016 17:55:06 +0100 Subject: Add audio probe handling in the player example Adds histogram widgets to visualize the data received from the audio probes, similar to what's done for the video probe already. Change-Id: Ie49a7766dc7ddcab1d9ccaf31372fb23f9ff5b68 Reviewed-by: Yoann Lopes --- examples/multimediawidgets/player/histogramwidget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples/multimediawidgets/player/histogramwidget.h') diff --git a/examples/multimediawidgets/player/histogramwidget.h b/examples/multimediawidgets/player/histogramwidget.h index 9462b1c84..a85dd27e1 100644 --- a/examples/multimediawidgets/player/histogramwidget.h +++ b/examples/multimediawidgets/player/histogramwidget.h @@ -43,8 +43,11 @@ #include #include +#include #include +class QAudioLevel; + class FrameProcessor: public QObject { Q_OBJECT @@ -67,6 +70,7 @@ public: public slots: void processFrame(QVideoFrame frame); + void processBuffer(QAudioBuffer buffer); void setHistogram(QVector histogram); protected: @@ -78,6 +82,7 @@ private: FrameProcessor m_processor; QThread m_processorThread; bool m_isBusy; + QVector audioLevels; }; #endif // HISTOGRAMWIDGET_H -- cgit v1.2.3