Ask Your Question
0

why there is a limited number of rates (output audio rate) in RTP Player with latest Wireshark version?

asked 2024-09-09 20:13:26 +0000

Labib gravatar image

In Latest Wireshark version ( 4.4) there is only 3 options of Output Audio rate in RTP player ( 16000, 44100, 48000) while there was more option in 4.0 version Please advise of the reason

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2024-09-12 01:16:12 +0000

johnthacker gravatar image

Qt5 and Qt6 have different ways of handling audio devices. Qt5 audio devices (QAudioDeviceInfo), when querying, give a short list of all the hardware supported sample rates. Qt5 does not itself support resampling. To play audio, the device is queried for the list of hardware sample rates, and then Wireshark must resample it before sending it to the output.

Qt6 (QAudioDevice), unlike Qt5, supports resampling. There is no function to retrieve the hardware supported audio sample rates. You can retrieve the minimum or maximum supported sample rates, or query if a particular rate is supported, but Qt6 will attempt to support any particular rate you give it by resampling as necessary.

The current workaround is to query for a small list of commonly supported sample rates, and list the ones that are supported. It's theoretically possible that some of those are being resampled twice, once from the Wireshark resampler (from SpeexDSP) and once by Qt6. Perhaps in the long run, when Qt5 support is completely dropped, Wireshark will not perform resampling and simply rely on Qt6's implementation.

edit flag offensive delete link more
0

answered 2024-09-09 23:57:43 +0000

Chuckc gravatar image

updated 2024-09-10 00:00:13 +0000

Changes needed to support Qt6.
Audio didn't work in 4.0.0. Qt reverted to Qt 5 in 4.0.1. Moved to Qt 6 in 4.2.0.

Wireshark 4.0.0 Release Notes

The Windows installers now ship with Qt 6.2.3. They previously shipped with Qt 6.2.4.

Wireshark 4.0.1 Release Notes

The Windows installers now ship with Qt 5.12.2. They previously shipped with Qt 6.2.3.

Wireshark 4.2.0 Release Notes

The following bugs have been fixed:

Issue 18413 - RTP player do not play audio frequently on Windows builds with Qt6.

7206: Qt: Update the RTP stream UI to support Qt6Multimedia.

ui/qt/rtp_player_dialog.cpp:

void RtpPlayerDialog::fillAudioRateMenu()
{
    ui->outputAudioRate->blockSignals(true);
    ui->outputAudioRate->clear();
    ui->outputAudioRate->addItem(tr("Automatic"));
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
    // XXX QAudioDevice doesn't provide supportedSampleRates(). Fake it with
    // what's available.
Version 4.0.17 (v4.0.17-0-g882448bcf104).

Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.37, build 32822),
with GLib 2.72.3, with PCRE2, with zlib 1.2.12,

 with Qt 5.15.2,

...
Version 4.2.0 (v4.2.0-0-g54eedfc63953).

Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.37, build 32822),
with GLib 2.78.0, 

with Qt 6.5.3,

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2024-09-09 20:13:26 +0000

Seen: 75 times

Last updated: Sep 12