[Interest] QAudioProbe alternative in Qt 6's Multimedia Module

Jøger Hansegård joger.hansegard at qt.io
Wed Sep 11 16:16:37 CEST 2024


Hi Gary,

Qt 6.8 introduces a new QAudioBufferOutput API for this purpose. I hope this will help you. If you encounter any issues when testing the API, please feel free to report them to our JIRA bug tracker.

QAudioBufferOutput: https://doc-snapshots.qt.io/qt6-6.8/qaudiobufferoutput.html
JIRA bug tracker: https://bugreports.qt.io/

Thanks,
Jøger Hansegård
The Qt Company

-----Original Message-----
From: Interest <interest-bounces at qt-project.org> On Behalf Of Wang Gary
Sent: Saturday, September 7, 2024 11:14 AM
To: interest at qt-project.org
Subject: [Interest] QAudioProbe alternative in Qt 6's Multimedia Module

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
_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest


More information about the Interest mailing list