Audio visualization using QMediaPlayer

I play audio from QMediaPlayer and want to visualize sound levels (like in this video , for example ).
I already found an example from the Qt 4 documentation, but they manually generated a signal, and I did not find a way to get the audio output buffer using QMediaPlayer.
How can I solve this problem / are there any other audio libraries (cross-platform) that can do this?

thank

+3
source share
1 answer

You have to look QAudioProbe.

The QAudioProbe class allows you to control playback or recorded sound.

QMediaPlayer QMediaObject, QAudioProbe QMediaPlayer bool QAudioProbe::setSource(QMediaObject* source), void QAudioProbe::audioBufferProbed(const QAudioBuffer& buffer). .

audioBufferProbed , , RMS . RMS.

, QProgressBar, , Qt Widgets for Technical , , .

+4

All Articles