[Interest] Qt6 porting guidance: QSound? QAudioFormat: endian, codec?

Doris Verria doris.verria at qt.io
Mon Aug 9 15:01:07 CEST 2021


Hello João,

Please go ahead and create a bug report about it.
Thanks.

Best,
Doris

From: joao morgado <joaodeusmorgado at yahoo.com>
Date: Monday, 9 August 2021, 2:44 PM
To: Qt Interest <interest at qt-project.org>, Doris Verria <doris.verria at qt.io>
Subject: Re: [Interest] Qt6 porting guidance: QSound? QAudioFormat: endian, codec?

Hi Doris

I've been testing SoundEffects in Qt6.2 beta2 and it's still quite buggy, a simple example code like the one in the docs
SoundEffect QML Type | Qt Multimedia 6.2.0<https://doc-snapshots.qt.io/qt6-dev/qml-qtmultimedia-soundeffect.html>

- in windows crashes the program (if I remove the line where the wav file is set in source, the program does not crash, but of course nothing is played)
- in linux mint I only get sound one time, at the first press event
- in MacOS works good

Shall I make a  bug report, or do you Qt guys already know this ?

Thanks
João




Em segunda-feira, 9 de agosto de 2021 11:38:51 GMT+1, Doris Verria <doris.verria at qt.io> escreveu:


Hello,

Currently, it is not possible to request a specific format for QAudioDecoder. We plan to support this after 6.2.

QAudioDecoder now decodes to the native format used in the encoded file. That is, it will output in the same channel count,
sample rate, sample format (the bits per sample information is sometimes irrelevant for compressed formats and therefore
will be 0 or not known. In that case, the output format will default to 16bit signed int) as the original file.

QAudioBuffer, returned by QAudioDecoder::read(), will have the correct output format set and can be retrieved through
QAudioBuffer::format().

Best,
Doris

On 8.8.21, 3:46 AM, "David M. Cotter" <dave at kjams.com<mailto:dave at kjams.com>> wrote:

    You can still specify the channel count, sample rate, and the sample format

    where and how does one do this for QAudioDecoder?

    or does QAudioDecoder only always output one specific format? what is the format? 44100 hz, 16bit signed int, stereo? or what?

    i see no documentation that explains this, nor is there anything in the header indicating it is possible to request a specific format

    -dave


_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210809/81efc96c/attachment.html>


More information about the Interest mailing list