Get QAudioBuffer from QMediaPlayer
I want to create an audio visualizer using QMediaPlayer
. I ran into this but QAudioProbe
didn’t allow me to install QMediaPlayer
as source. I believe this may not be supported by OSX.
I also found this one , but I'm not sure how to make it work with QMediaPlayer
as this example uses QIODevice
.
Is there any other way to get QAudioBuffer
from QMediaPlayer
without using it QAudioProbe
? If not, what other approach to getting data from QMediaPlayer
to create a visualizer?
source to share