Get QAudioBuffer from QMediaPLayer
Hi, I create stream player based on qmediaplayer and want add peak level meter to it.
i use functions from example recorder and make this:
http://gyazo.com/a45cb3f5dd5a072094d41463ad0b56c3.gif (the image is too large to insert it here, 183kb)
my result left on image, on right what i need
peak level update based on signal from QAudioProbe
Code:
QAudioProbe *probe = new QAudioProbe();
connect(probe, SIGNAL(audioBufferProbed(QAudioBuffer)),
this, SLOT(processBuffer(QAudioBuffer)));
i tried emit this signal but it not working;
how to emit this signal or get audiobuffer from player for no use signal and send buffer to processBuffer manualy?
Re: Get QAudioBuffer from QMediaPLayer
Have you called QAudioProbe::setSource() with your QMediaPlayer? (Almost exactly as in the documentation)
Re: Get QAudioBuffer from QMediaPLayer
Quote:
Originally Posted by
ChrisW67
Have you called QAudioProbe::setSource() with your QMediaPlayer? (Almost exactly as in
the documentation)
i set source, me need update peak level FASTER