[Interest] QAudioProbe alternative in Qt 6's Multimedia Module
Wang Gary
wzc782970009 at gmail.com
Sat Sep 7 11:13:35 CEST 2024
Hi,
In Qt 5, QAudioProbe is a pretty handy class that allows developers
attach it on a QMediaObject to monitor the audio currently being
played. For example, it can be use to attach to a QMediaPlayer to
create real-time audio visualization.
In Qt 6, QAudioProbe no longer exists, and it seems there are also no
alternatives that provides the ability to inspect/probe an existing
QAudioOutput (QAuidoOutputProxy?).
By reading the Qt 6 Multimedia documentation, I know one option is use
QAudioDecoder and QAudioSink instead of QMediaPlayer, but there are
some downside too. If we go with QAudioSink, we should handle all
underlying details manually, beside that, it seems we also won't be
able to make use of QMediaMetaData to fetch media metadata.
So, what's the suggested method to create real-time audio
visualization for QMediaPlayer? Or is there any plan to re-introduce
QAudioProbe or similar classes that provides the same ability?
Thanks!
Gary
More information about the Interest
mailing list